Hmm this was something I wondered when I was making a littlebit JASS on my own.
I got a system that checks something every 0.50 seconds and does an action if a boolean is true. The only important info here is the 0.50 second interval.
Currently I got something like this:
Loop
exitwhen i > 5
if boolean == true then
blabla
set i = 6
else
set i = i + 1
call wait(0.50)
endloop
This is basically what I have atm, but the problem is that the waits aren't really secure, sometimes I can just see it in my map that it skips a 0.50 interval. Could someone tell me how to avoid waits? I once heard something about countdown timers but I'm not really sure about it.
Thanks.
I got a system that checks something every 0.50 seconds and does an action if a boolean is true. The only important info here is the 0.50 second interval.
Currently I got something like this:
Loop
exitwhen i > 5
if boolean == true then
blabla
set i = 6
else
set i = i + 1
call wait(0.50)
endloop
This is basically what I have atm, but the problem is that the waits aren't really secure, sometimes I can just see it in my map that it skips a 0.50 interval. Could someone tell me how to avoid waits? I once heard something about countdown timers but I'm not really sure about it.
Thanks.