Frizz.Meister
New Member
- Reaction score
- 0
A simple question really but i cant seem to work out how to actually use handle vars. I know what they do and how they do it but they never work for me.
Would it be possible for someone to post a trigger moving a unit from initial function to a timer function.
I know its not the best example but i want to move tu to the function Timer_Func
any help?
Would it be possible for someone to post a trigger moving a unit from initial function to a timer function.
JASS:
unction Timer_Func takes nothing returns nothing
call KillUnit( tu )
endfunction
function Init takes nothing returns nothing
local timer t=CreateTimer()
local unit tu=GetSpellTargetUnit()
call TimerStart(t, 0.05, true, function Timer_Func)
call TriggerSleepAction(1)
call DestroyTimer(t)
set t=null
endfunction
I know its not the best example but i want to move tu to the function Timer_Func
any help?