Below is a shortened version of a trigger I made.
Problem: the actions that the timer is supposed to do every 0.5 seconds, are done +/- every 1.1 seconds. Is this because using a gamecache is so slow? will using a hashtable once 1.23b is released solve this?
Problem: the actions that the timer is supposed to do every 0.5 seconds, are done +/- every 1.1 seconds. Is this because using a gamecache is so slow? will using a hashtable once 1.23b is released solve this?
JASS:
function F1 takes nothing returns nothing
local timer T = GetExpiredTimer()
local unit U = GetHandleUnit(T,"caster")
local integer I = GetUnitAbilityLevel(U,039;A00F039;)
local integer Count = GetHandleInt(T,"count")+1
// ...
//some actions here
// ...
if(Count>5) then
call PauseTimer(T)
else
call SetHandleInt(T,"count",Count)
endif
endfunction
function CallofChaos_Actions takes nothing returns nothing
local unit U = GetSpellAbilityUnit()
local timer T = CreateTimer()
call SetHandleHandle(T,"caster",U)
call SetHandleInt(T,"count",0)
call TimerStart(T,0.5,true,function F1)
call PolledWait(10)
call DestroyTimer(T)
endfunction


