Hey, I'm trying to get a map to kill all the units of a player once they have been defeated. Can someone help me out? I'm having trouble figuring out how to do it. there's a kill unit command but it only targets single units.
Thanks
-explicit
Unit Group - For each unit CurrentUnit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount) do (Actions)
Unit - Kill CurrentUnit
CurrentUnit being a simple local variable
'Defeated' could mean multiple things, so the event would run when you deem a player defeated. You can also switch out Triggering Player for a number if that makes it easiar.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey, I'm trying to get a map to kill all the units of a player once they have been defeated. Can someone help me out? I'm having trouble figuring out how to do it. there's a kill unit command but it only targets single units. Thanks -explicit
"Pick all units in unit group and do" (under Unit Group) should work
Unit Group - For each unit CurrentUnit in (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount) do (Actions) Unit - Kill CurrentUnit
CurrentUnit being a simple local variable
'Defeated' could mean multiple things, so the event would run when you deem a player defeated. You can also switch out Triggering Player for a number if that makes it easiar.