Tom Jones
N/A
- Reaction score
- 437
call GroupClear(g)so u are saying i should do:
- call DestroyGroup(g)
- call CreateGroup(g)
- call GroupEnumUnitsInRange(g,x,y,500*level,b)
like this?
call GroupEnumUnitsInRange(g,x,y,500*level,b)
call GroupClear(g)so u are saying i should do:
- call DestroyGroup(g)
- call CreateGroup(g)
- call GroupEnumUnitsInRange(g,x,y,500*level,b)
like this?
// loop
// exitwhen (TimerGetRemaining(speed) == 0)
call TriggerSleepAction(1)
// endloop
call TimerStart(t,30,false,null)
and btw
JASS:call TimerStart(t,30,false,null)
i know the null part is where i should put a callback code but what do i need it for?
function timerstart takes unit u returns nothing
call KillUnit(u)
endfunction
function poo takes nothing returns nothing
local timer t = CreateTimer()
call TimerStart(t,30,false,function timerstart)
endfunction
so u are saying that running the timer would also make it run the function or that the function will run once the timer ends?I'm pretty sure that that is used if you want to make the timer start on a separate function. i.e.:
JASS:function timerstart takes unit u returns nothing call KillUnit(u) endfunction function poo takes nothing returns nothing local timer t = CreateTimer() call TimerStart(t,30,false,function timerstart) endfunction
because waits can't go below 0.27 and i need lower than that but i can settele with it but my point is why it's still doesn't work?Instead of using a timer and a loop for your wait, why don't you use TriggerSleepAction() or PolledWait()?
That'll crash the gameJASS:function timerstart takes unit u returns nothing call KillUnit(u) endfunction function poo takes nothing returns nothing local timer t = CreateTimer() call TimerStart(t,30,false,function timerstart) endfunction
Once the timer ends, it'll execute the function.so u are saying that running the timer would also make it run the function or that the function will run once the timer ends?