-
-
Notifications
You must be signed in to change notification settings - Fork 9
timer.Create
Jérôme Leclercq edited this page Dec 8, 2020
·
1 revision
API: timer.Create
Sets a timer which executes a function once the timer expires.
timer.Create
(time: integer
, callback: function
)
-
time
: Time in milliseconds before triggering callback. -
callback
: Callback to be called
- The callback function will be triggered in the main Lua thread and not in a coroutine.
- The time resolution depends on the match tickrate, as the callback will only get called in the tick following the timer expiration.