Tarindis_18
New Member
- Reaction score
- 0
Hello, this is my first time experiencing what I believe to be a group leak, when I run the triggers below it will spawn hundreds and hundreds of "defenders" (custom unit). I have tried using the following custom scripts:
Custom script: set bj_wantDestroyGroup = true
Custom Script: call DestroyGroup(udg_UnitGroup)
and I have tried placing them in different spots all around both triggers. I am a huge noob when it comes to leaks, so any suggestion (no matter how blatantly obvious) can be an unexplored solution. Thank you!
Trigger 1
Events
Time - Elapsed game time is 28.00 seconds
Conditions
Actions
Unit Group - Add all units of (Units in LeftBuildArea <gen>) to (Units within 512.00 of (Position of Dummy2 0004 <gen>))
Custom script: set bj_wantDestroyGroup = true
Trigger 2
Events
Time - Elapsed game time is 29.00 seconds
Conditions
Actions
Trigger - Add to (This trigger) the event (Unit - A unit comes within 512.00 of Dummy2 0004 <gen>)
If ((Unit-type of (Triggering unit)) Equal to Defender) then do (Unit - Create 1 Defender for Player 11 (Dark Green) at (Random point in Left Melee <gen>) facing Default building facing degrees) else do (Do nothing)
Custom script: set bj_wantDestroyGroup = true
Custom script: set bj_wantDestroyGroup = true
Custom Script: call DestroyGroup(udg_UnitGroup)
and I have tried placing them in different spots all around both triggers. I am a huge noob when it comes to leaks, so any suggestion (no matter how blatantly obvious) can be an unexplored solution. Thank you!
Trigger 1
Events
Time - Elapsed game time is 28.00 seconds
Conditions
Actions
Unit Group - Add all units of (Units in LeftBuildArea <gen>) to (Units within 512.00 of (Position of Dummy2 0004 <gen>))
Custom script: set bj_wantDestroyGroup = true
Trigger 2
Events
Time - Elapsed game time is 29.00 seconds
Conditions
Actions
Trigger - Add to (This trigger) the event (Unit - A unit comes within 512.00 of Dummy2 0004 <gen>)
If ((Unit-type of (Triggering unit)) Equal to Defender) then do (Unit - Create 1 Defender for Player 11 (Dark Green) at (Random point in Left Melee <gen>) facing Default building facing degrees) else do (Do nothing)
Custom script: set bj_wantDestroyGroup = true