LUA Timer examples
i dont want to wait on while loop, i want that it do like example on pilots language, it do on start and then after x time passed it do it again and go to next block
it need for if statement
any examples?
Код
--lua
repeat
// do something on script start and then after is x time passed
// do next block
until false
Код
:start
if #timeStance < timer //stances
//do smth on start, then after 14 sec passed he do this block again
set #timeStance timer + 1000 * 60 * 14
end_if
//more blocks with if timers
goto start
P.S mby that teme was but it's hard to search on russian forum if it isn't native language, if such topic exist, link please
Вверх