• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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