I'm having an issue where after i spawn 3 zerglings within a region named "battlefield" I am unable to kill them.
I have no idea how to go about this. From what I know, units spawned with triggers are read only and make it impossible to add them to a unit group.
Thus, all of the ways I know of getting rid of multiple units are void. The only way I can think of doing it is having a max constant of how many units are in the region, and making a loop were it kills a random unit within the region that many times. This seems a little excessive though. I'm hoping someone can tell me an easier way.
I'm having an issue where after i spawn 3 zerglings within a region named "battlefield" I am unable to kill them.
I have no idea how to go about this. From what I know, units spawned with triggers are read only and make it impossible to add them to a unit group. Thus, all of the ways I know of getting rid of multiple units are void. The only way I can think of doing it is having a max constant of how many units are in the region, and making a loop were it kills a random unit within the region that many times. This seems a little excessive though. I'm hoping someone can tell me an easier way.
When I create a unit that I'm going to remove I set them up to a variable.
Variable: Unit - Unit[100]
Action:
Create unit X
Set Variable Unit[0] = Last created unit
Kill unit variable Unit[0]
Thanks, using this method for my map now.