- Joined
- Dec 31, 2016
- Messages
- 320
Well, I have this trigger. Do i need to always use "call RemoveLocation...", after "Point" variable, to remove leaks or it will overwrite itself every time it is used, so no memory leaks will occur?
-
Reinforcements
-
Events
- Time - Reinforcements expires
- Conditions
-
Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
- Set Point = (Random point in Reinforcements <gen>)
- Unit - Create 1 Archer for Player 2 (Blue) at Point facing Default building facing degrees
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Integer A) Less than or equal to 2
-
Then - Actions
- Set Point = (Random point in Reinforcements <gen>)
- Unit - Create 1 Huntress for Player 2 (Blue) at Point facing Default building facing degrees
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Set Group = (Units in Reinforcements <gen>)
-
Unit Group - Pick every unit in Group and do (Actions)
-
Loop - Actions
- Set Point = (Random point in Reinforcements Dest <gen>)
- Unit - Order (Picked unit) to Attack-Move To Point
-
Loop - Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Events
Last edited: