Hey i have some units outside of the map.They are 5 waves in total.I have made the scripts correctly.The scripts i have made is for the units to follow a curtain path after a period of time is finished.The problem is that when the first wave comes after 10 sec. timer i see all the waves coming.I thing that there might be something to change to the units in order to follow the script ONLY.As i said before the scripts are correct.Can anyone help?
Unit or script problem
Started by Shitman, Aug 30 2007 04:49 PM
4 replies to this topic
#1
Posted 30 August 2007 - 04:49 PM
#3
Posted 30 August 2007 - 10:31 PM
Here is the script for wave 1.
I have five waves of enemies which are scripted to come when a curtain time is finished.I will have the first wave as an example.
The scripts are the following:If true then set timer"1 wave" expire in 10 seconds.
If timer"1 wave" has expired then attackmove unit 1 wave to waypoint1.
The "1 wave"is the name from the units that should go at waypoint 1 when timer has expired.
I have also made a script so that i can see the time.When the time is finished the units don't come then but
after a while.And some seconds before the timer for the second wave is finished i see the second wave coming.
From the 3rd wave only a unit comes and from the 4rh as well.Nothing shows up from the 5th.
I have five waves of enemies which are scripted to come when a curtain time is finished.I will have the first wave as an example.
The scripts are the following:If true then set timer"1 wave" expire in 10 seconds.
If timer"1 wave" has expired then attackmove unit 1 wave to waypoint1.
The "1 wave"is the name from the units that should go at waypoint 1 when timer has expired.
I have also made a script so that i can see the time.When the time is finished the units don't come then but
after a while.And some seconds before the timer for the second wave is finished i see the second wave coming.
From the 3rd wave only a unit comes and from the 4rh as well.Nothing shows up from the 5th.
Edited by Shitman, 31 August 2007 - 12:43 AM.
#4
Posted 31 August 2007 - 12:41 AM
Now i have another problem.I deleted all the scripts with the timer and made them again.When i start the game the timers for the 1st and 2cd waves are counting down normally.But i do not know how the heck the timers for the other waves are to 0 seconds from the begining of the game.The seconds for the timer of the waves 3-5 are 450, 700 and 1000.At least in that way it should be when i start.
#5
Posted 02 September 2007 - 07:34 AM
Ok, WrathChild to the rescue
First wave
1)IF
True
Then
Set timer <Timer1> to expire in <???> seconds
(new script)
2)IF
Timer1 has expired
THEN
Spawn named unit <Wave1> at waypoint <Wave1>
Unit <Wave1> follows a waypath starting at waypoint <Wave1Path>
(new script)
2nd wave
(optional: this will place a timer between each wave so u can rest)
3)IF
Unit <Wave1> has been destroyed
THEN
Set timer <Timer2> to expire in <???> seconds
(new script)
4)IF
Timer <Timer2> has expired
THEN
Spawn named unit <Wave2> at waypoint <Wave2>
Unit <Wave2> follows a waypath starting at waypoint <Wave2Path>
(new script)
Make script 3 again but change Wave1 to Wave2 etc. Repeat script 3&4 but change waypoint names/unit names depending on how many waves u want.
Hope I could be of any help
First wave
1)IF
True
Then
Set timer <Timer1> to expire in <???> seconds
(new script)
2)IF
Timer1 has expired
THEN
Spawn named unit <Wave1> at waypoint <Wave1>
Unit <Wave1> follows a waypath starting at waypoint <Wave1Path>
(new script)
2nd wave
(optional: this will place a timer between each wave so u can rest)
3)IF
Unit <Wave1> has been destroyed
THEN
Set timer <Timer2> to expire in <???> seconds
(new script)
4)IF
Timer <Timer2> has expired
THEN
Spawn named unit <Wave2> at waypoint <Wave2>
Unit <Wave2> follows a waypath starting at waypoint <Wave2Path>
(new script)
Make script 3 again but change Wave1 to Wave2 etc. Repeat script 3&4 but change waypoint names/unit names depending on how many waves u want.
Hope I could be of any help
Let him who hath understanding reckon the number of the beast
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users