• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Does this leak?

Status
Not open for further replies.
Level 5
Joined
Aug 18, 2013
Messages
85
  • Player Group - Pick every player in Axis and do (Player - Make Player 11 (Dark Green) treat (Picked player) as an Ally with shared vision)
  • Player Group - Pick every player in Axis and do (Player - Make (Picked player) treat Player 11 (Dark Green) as an Ally with shared vision)
 
Level 37
Joined
Aug 6, 2015
Messages
786
Player Groups

  • Set PlayerGroup = (All enemies of Player 1 (Red))
... Usage of force ...
  • Custom script: call DestroyForce(udg_PlayerGroup)
Be warned! "AllPlayers" does not leak, it is a static and constant variable. Never destroy it.
So afaik following does not leak, and be used just like that:
  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
 
Status
Not open for further replies.
Top