Hello, I am trying to create a function that removes every unit a player controls when that player leaves the game. I found the "Remove all units" trigger, but it does not remove the units from the game, just from the group (that's my guess anyway). I also tried creating a pick each loop, but it does not allow you to set units controlled by a player as a group to loop through. I would appreciate any help :D
Unit Group - Pick each unit in (Any units in (Entire map) owned by player CHOSEN PLAYER matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
edit-> pick each unit, set unit group to unit in region matching condition.
I would go with the "add unit group to unit group" action
So add all unit in entire map owned by triggering player to units to be removed group (you have to make the unit Group variable
Then remove all units in units to be removed from the game.
Hello, I am trying to create a function that removes every unit a player controls when that player leaves the game. I found the "Remove all units" trigger, but it does not remove the units from the game, just from the group (that's my guess anyway). I also tried creating a pick each loop, but it does not allow you to set units controlled by a player as a group to loop through. I would appreciate any help :D
Thanks
Unit Group - Pick each unit in (Any units in (Entire map) owned by player CHOSEN PLAYER matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
edit-> pick each unit, set unit group to unit in region matching condition.
I would go with the "add unit group to unit group" action
So add all unit in entire map owned by triggering player to units to be removed group (you have to make the unit Group variable Then remove all units in units to be removed from the game.
Thanks guys I got it working :D