Skip to content
Jérôme Leclercq edited this page Dec 8, 2020 · 1 revision

API: timer.Sleep

Description:

Pauses the calling coroutine for a specific duration.

Prototype:

timer.Sleep(time: integer)

Parameters:

  1. time: Time in milliseconds before resuming.

Remarks:

  1. The time resolution depends on the match tickrate, as the callback will only get called in the tick following the timer expiration.
  2. This function can only be called from within a coroutine.

Clone this wiki locally