- Joined
- Dec 12, 2010
- Messages
- 280
Is it nessesary to null a unit variable like I did in this trigger? Do unit variables leak?
-
ChangeOwner
-

Events
-


Unit - A unit comes within 256.00 of No unit
-
-

Conditions
-


(Owner of No unit) Not equal to Neutral Passive
-
-

Actions
-


Set Temp_Unit = (Triggering unit)
-


Wait 7.00 game-time seconds
-


Set TempPoint_1 = (Position of Temp_Unit)
-


Set TempPoint_2 = (Position of No unit)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Distance between TempPoint_1 and TempPoint_2) Less than 256.00
-
-



Then - Actions
-




Unit - Change ownership of No unit to Neutral Hostile and Change color
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-




Set Temp_Unit = No unit
-
-
-


Custom script: call RemoveLocation(udg_TempPoint_1)
-


Custom script: call RemoveLocation(udg_TempPoint_2)
-
-



