- Joined
- May 16, 2012
- Messages
- 644
Hey, it's me again, so if i declare a local unit and set that local variable let's say
and that unit dies, my variable will keep the value of the unit or it will be nulled?
Exemple, This code:
, It will eventually exit the loop when the unit dies or it will nerver exit the loop and keep running forever?
JASS:
v = GetTriggerUnit()
Exemple, This code:
JASS:
function Frozen_Sword_Actions takes nothing returns nothing
local unit u
local unit v
set u = GetAttacker()
set v = GetTriggerUnit()
loop
exitwhen v == null
Some Code
call TriggerSleepAction(1.0)
endloop
set u = null
endfunction