- Joined
- Nov 1, 2006
- Messages
- 1,612
I am looking for the best way to prevent "pick every unit in" triggers from leaking. I found that the best way is to set a variable = the group of units/players you want, then pick every unit in [the group variable]. However when needing to do this possibly at the same time, using a global variable in a regular triggered function sucks because it can conflict.
So I want to learn to do this in JASS, cleanly.
If you can show an optimized example of how to set a local player group variable to your desired players, pick every player in that group and perform an action, and then Clear it and do the same with a Unit group that would be perfect. I'm very eager to learn how to do this.
So I want to learn to do this in JASS, cleanly.
If you can show an optimized example of how to set a local player group variable to your desired players, pick every player in that group and perform an action, and then Clear it and do the same with a Unit group that would be perfect. I'm very eager to learn how to do this.