I have a group that gets looped over periodically and needs to be able to have units be added and removed at any time. The group must persist each time.
I ran into an issue where one of the units exploded from a meat wagon so it got set to null. This causes problem with:
Is there any way to remove a null unit from a group?
Is there any way to check if there are still more units in the group that's not slow?
Or do I have to be super meticulous about removing the units as they die and whatnot?
I added a separate trigger to remove units from the group when they die, but I still eventually ran into the problem (basically the group just thinks it is empty forever - so adding units stops doing anything). It is hard to tell what happened that caused it.
I ran into an issue where one of the units exploded from a meat wagon so it got set to null. This causes problem with:
JASS:
exitwhen picked == null
Is there any way to remove a null unit from a group?
Is there any way to check if there are still more units in the group that's not slow?
Or do I have to be super meticulous about removing the units as they die and whatnot?
I added a separate trigger to remove units from the group when they die, but I still eventually ran into the problem (basically the group just thinks it is empty forever - so adding units stops doing anything). It is hard to tell what happened that caused it.