• 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.

Is this trigger leak free?

Status
Not open for further replies.
Level 5
Joined
Mar 17, 2005
Messages
135
  • Players Not Here
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Set Temp_Group = (Units in (Playable map area))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) slot status) Not equal to Is playing
            • Then - Actions
              • Unit - Remove (Picked unit) from the game
            • Else - Actions
              • Do nothing
      • Custom script: call DestroyGroup (udg_Temp_Group)
 
Level 5
Joined
Jul 14, 2008
Messages
121
No leaks, but you should make your event each 0.03, will be less laggy. Also remove the Do Nothing action.
 
Status
Not open for further replies.
Top