Hi, i made this wave trigger to spawn some units, set a variable for them and set its rally point
the probem is that no rally point is set, even if the unit has the rally ability did i do something wrong?
the probem is that no rally point is set, even if the unit has the rally ability did i do something wrong?
-
Waves 1 to 5
-
Events
- Time - Every 2.00 seconds of game time
-
Conditions
- (Count non-structure units controlled by Player 12 (Brown) (Exclude incomplete units)) Less than 1
- Level Less than or equal to 3
-
Actions
- Set i_Wave_Creating = 0
-
For each (Integer i_Waves[0]) from 1 to WavesAmmount[Level], do (Actions)
-
Loop - Actions
-
For each (Integer i_Waves[1]) from 1 to CreepsAmmount[Level], do (Actions)
-
Loop - Actions
- Unit - Create 1 Creeps[Level] for Player 12 (Brown) at (Center of (Playable map area)) facing 180.00 degrees
- Set Unit_Array[i_Wave_Creating] = (Last created unit)
- Unit - Set Rally-Point for Unit_Array[i_Wave_Creating] to Waypoints_West[0]
- Game - Display to (All players) the text: ((String((X of Unit_Rally_Point[i_Wave_Creating]))) + (, + (String((Y of Unit_Rally_Point[i_Wave_Creating])))))
- Set i_Wave_Creating = (i_Wave_Creating + 1)
-
Loop - Actions
- Wait WavesCooldown[Level] game-time seconds
-
For each (Integer i_Waves[1]) from 1 to CreepsAmmount[Level], do (Actions)
-
Loop - Actions
- Set Level = (Level + 1)
-
Events