Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
First I noticed that it's the same timer being started i times; I thought it was multiple different timers. The way you've written it the timer will ultimately only be started for 100s once and only expire that one time.
I'm not really sure I understand what you're saying. The object itself needs to be destroyed, either in the callback or some other function that runs after the callback.
Pyrogasm is correct. This loop is useless by its current state, you destroy the timer in the callback (or in a function in callback), doing it outside would just prevent it from doing anything in the callback.
Lua:
TimerStart(t, i, false, function()
--do stuff
call DestroyTimer(t)
set t = nil --not sure if you actually need to null local variables in lua
end)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.