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.
0
Battle.net Nick: PapaRoach | Number: 299 | Region: USA | Comment: Will test map and check triggers, data, etc. to the bounds of my knowlege
0
Many thanks guys, worked like a charm.
0
I added picture of trigger that attempts to set the variable to attacking unit.
In another trigger later I try and access that variable in and if statement and it fails because of the variable not being the zergling that attacked.
0
How come
Variable - Set Attacking Unit Member = (Returns the unit who last attacked the specified unit Zealot Prisoner [48.91, 246.80])
Does not set the specified variable to the last unit who attacked the specified zealot prisoner.
How can I fix this, and alternatively how can I make an action(s) that does this.
0
Thanks, using this method for my map now.
0
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.