- Joined
- May 15, 2007
- Messages
- 88
I just made a trigger to respawn an unit, since it won't work with "If Unit Dies" Because it only explodes(By being attacked by Siege), but I need to know if the trigger will leak,
Thanks.
(PS: There weren't anything in Ralle's post about this type of trigger, so I can't know if it will leak or not, though I had experiences with a similiar trigger(Other "Wait Until" actions) Leaking)
Note: Changed bottom trigger to this:
Thanks.
(PS: There weren't anything in Ralle's post about this type of trigger, so I can't know if it will leak or not, though I had experiences with a similiar trigger(Other "Wait Until" actions) Leaking)
Note: Changed bottom trigger to this:
-
Respawnt
-
Events
- Unit - A unit enters Enterexitgroup <gen>
- Conditions
-
Actions
- Wait until ((((Triggering unit) is dead) Equal to True) or ((Enterexitgroup <gen> contains (Triggering unit)) Equal to False)), checking every 0.10 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is dead) Equal to True
-
Then - Actions
- Wait 10.00 seconds
- Unit - Create 1 WannabeSmartie for (Owner of (Triggering unit)) at (Center of ContStartup <gen>) facing Default building facing degrees
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events
-
Respawnt
-
Events
- Unit - A unit enters Enterexitgroup <gen>
- Conditions
-
Actions
- Wait until ((((Triggering unit) is dead) Equal to True) or ((Enterexitgroup <gen> contains (Triggering unit)) Equal to False)), checking every 0.10 seconds
- Wait 10.00 seconds
- If (((Triggering unit) is dead) Equal to True) then do (Unit - Create 1 WannabeSmartie for (Owner of (Triggering unit)) at (Random point in ContStartup <gen>) facing Default building facing degrees) else do (Do nothing)
-
Events
Last edited: