- Joined
- Mar 24, 2013
- Messages
- 1,105
- Custom script: set bj_wantDestroyGroup = true
So if it destroys the group right after it (after doing its necessary actions) can this group no longer be referenced if the trigger is to reran? Because some of Unit Groups are doing the proper actions the first time they are called, but the second time (I presume after the group has "been destroyed") there is a problem.
Well if Unit Group will pretty much never be destroyed until the game ends then, in which case, how can I limit the "leakage" of this unit group? If destroying is not the proper method?
is usable, I think, because I use this script almost on every trigger of mine, and seems no problem, I guess...custom script : call DestroyGroup(udg_Group_Var)
set bj_wantDestroyGroup = true
is when you want to destroy Unit Group that is not set via variable.call DestroyGroup(udg_variableName)