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!
What? GetPlayersAll() doesn't leak!
It's only returns a constant. To prove it doesn't leak, try destroying it. You'll never be able to use it again (after you destroy it). However if you assign it to a local and you don't null it then it will leak.
Everything leaks except booleans, integers and reals.
To prevent the player group from leaking, you only need to do the same that you do for unit groups, but we use a different custom script (and, of course, a player group variable instead of a unit group one):
Actions
Set YourPlayerGroupVariable = (Pick Every Player...)
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.