Xan_Kriegor
I can change this now in User CP.
- Reaction score
- 12
In one of my triggers I (attempt to) add a unit to a unit group. Immediately after (next line in trigger) I do an integer comparison to see if the unit group is empty or not, and it always returns empty. Not only this, but I have debug text to make sure I'm referring to the unit correctly (spits out the Picked Unit's name) that properly displays the unit's name so I know it picked the right unit.
There's the snippet in my trigger. The unit is owned by Neutral Passive so that's not the issue. When this trigger runs I only get one message, the one from the first loop. For the record, there are no DestroyGroup calls made in this trigger preceding the snippet.
Anyone know what would lock a unit group from having more units added?
Trigger:
- Actions
- Unit Group - Pick every unit in (Units within 100.00 of Point matching ((Owner of (Matching unit)) Equal to Neutral Passive)) and do (Actions)
- Loop - Actions
- Unit Group - Add (Picked unit) to ugTemp
- Game - Display to (All players) the text: (Picked unit - + (Name of (Picked unit)))
- Unit Group - Pick every unit in ugTemp and do (Actions)
- Loop - Actions
- Game - Display to (All players) the text: (Name of (Picked unit))
There's the snippet in my trigger. The unit is owned by Neutral Passive so that's not the issue. When this trigger runs I only get one message, the one from the first loop. For the record, there are no DestroyGroup calls made in this trigger preceding the snippet.
Anyone know what would lock a unit group from having more units added?