Skip to main content
rb.timer runs a function once after a delay, or repeatedly on an interval. A script reaches for it to delay an action or to poll something on a schedule. This script prints a line every second and stops itself after five and a half seconds:
Timers run on the engine tick, so a timer fires at most once per tick. An error in a callback does not stop the script; it is logged to the script’s Logs. The TimerHandle stops, pauses and resumes one timer with stop(), pause() and resume().