Static function
Fast
Timer.SetInterval
Same as SetTimeout(), but repeats the execution of the function continuously
Syntax
Timer.SetInterval(callback, milliseconds = 0, parameters... = nil)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
callback
|
function | — | The callback that will be executed.<br/>Return false to stop it from being called. |
milliseconds
optional
|
integer | 0 |
The time in milliseconds the timer should delay in between executions of the specified function |
parameters...
optional
|
any | nil |
Additional parameters to pass to the function |
Returns
- integer the interval_id