Run Later
Execute a function later on.
"Run Laters" are a way to run a function after a certain period of time.
function myFunction()
Print('I was executed 2.5 (2500ms) seconds later!!')
end
function onInitialize()
RunLater(2500, myFunction)
end
You can also infinitely loop..
function myFunction()
Print('Executed!')
RunLater(2500, myFunction) -- Run again in 2500 milliseconds
end
function onInitialize()
RunLater(2500, myFunction)
end
Last updated