Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
You only need to clear it if you create it. If it is created in an if statement, destroy it in the if statement. Destroying a destroyed group may also cause a crash, but I'm not sure.
I think so. What does the trigger look like? Is there something like (Units in region (myRegion))? That creates a group, so you would need to clear that leak.
For most cases, you can use the same group variable. Just call it tempGroup or something. It's not so bad once you start using the variable by default. It makes cleaner code as well.
When you do a ForGroup action or "Pick every units in <unitgroup> and do action(s)" then it will also destroy the group if bj_wantDestroyGroup (a global boolean variable) is set to true.
This works with both variables and direct groups but this custom script cannot be placed in conditions as custom scripts are not allowed there.
This only works with the Blizzard.j ForGroupBJ function and not for ForGroup from Common.j (for people who understood what I just said.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.