Perform an action on a certain time interval a certain amount of times
| <vizact>.ontimer2( | |
| rate | |
| repeats | |
| func | |
| *args |
)
rate
The rate at which to call the function (in seconds)
repeats
Number of times to repeat the timer. If 0, the timer will be called only once. If 1, the timer will be called twice. IF viz.FOREVER, timer will repeat indefinitely.
func
The function to call when the timer expires
*args
The arguments to be passed to func.
This will call the specified function with the specified arguments on the specified interval. The timer will repeat as many times as specified.
The timer event.