Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
GHI_Timer(func, interval, onceOnly)
GHI_Timer has 2 required arguments and 1 optional argument.
- Define a function as a variable and pass it to GHI_Timer to have it executed at predetermined intervals. The function must be define, even if it is a standard function.
- This is the time between executions of the function listed in seconds.
- onceOnly [optional]
- If marked true, the function will trigger only once after the interval has passed. If marked false or left off the function will repeat until the UI is reloaded.
local func = function() GHI_ScreenFlash(1, 1, 2,"teal") end
local interval = 2
This script will cause the screen to continuously flash teal.