Okay, so I know that Local Handle Vars are outdated.
But I was wondering how I would use an alternative?
(I do not want a vJass alternative, a global decleration block is not what I'm searching for)
I'm quite unfamillair with it and this is what I'm trying to do:
In this example, how would I get u inside the TimerFilter without using a global?
Also: how would I destroy the created timer after a specified amount of times being expired?
But I was wondering how I would use an alternative?
(I do not want a vJass alternative, a global decleration block is not what I'm searching for)
I'm quite unfamillair with it and this is what I'm trying to do:
JASS:
function TimerFilter takes nothing returns nothing
call QueueUnitAnimation(u, "spell")
endfunction
function Actions takes nothing returns nothing
local unit u = CreateUnit(Player(0), 'hpea', 0, 0, 0)
call SetUnitAnimation(u, "spell" )
call TimerStart(CreateTimer(), 0.50, true, function TimerFilter)
endfunction
In this example, how would I get u inside the TimerFilter without using a global?
Also: how would I destroy the created timer after a specified amount of times being expired?
Last edited: