Could someone enlighten me in the ways of removing ALL of a type of unit for a certain player?
ex. Remove/Kill all (Marine) for Player (1)
In my tron game, I need the line to be removed after you die, which is comprised of a bunch of units
None.
First create a variable with the type Unit group:
Unit Group Variable = (Empty unit group) <Unit Group>
Next, in the trigger where you create your marines add this action after each creation:
Unit Group - Add (Last created unit) to Unit Group Variable
This is the action to remove the units:
Unit Group - Remove all units from Unit Group Variable
None.
First create a variable with the type Unit group:
Unit Group Variable = (Empty unit group) <Unit Group>
Next, in the trigger where you create your marines add this action after each creation:
Unit Group - Add (Last created unit) to Unit Group Variable
I was already experimenting with these things.
This is the action to remove the units:
Unit Group - Remove all units from Unit Group Variable
Damnit. I saw that function, but I kind of figured it only removed the units from the VARIABLE, not the map....
I believe the above statement is correct. I think the units are only removed from the unit group, not the map.
EDIT: Ok wtf. For some reason, I'm having trouble adding units to my unit group. I really don't understand why none of this crap is working. Any ideas?EDIT: Nvm.... I had unit group set to 'No Unit Group' instead of 'Empty Unit Group'.
Lock topic now if you wish.
Post has been edited 4 time(s), last time on May 3 2010, 2:34 am by Swampfox.
None.