timer_create_paused - kemonologic/fuwafuwa Wiki

timer_create_paused(time, [unit], [autoDestroy])

Returns: (map) A reference to the new timer.

Argument Type Name Desc
0 real time How long to set the timer for.
1 enum* unit The unit to use for the timer (default: time.ms)
2 bool* autoDestroy Whether to automatically destroy the timer. (default: true)

Sets a timer and returns a reference to it which will be used for all other functions, but automatically pauses the timer. Paused timers can be resumed with timer_unpause. Otherwise identical to timer_create, so please refer to that page for more information. Useful to declare timers ahead of time that you don't want to run immediately.