Latite Scripting Documentation (Exports)
Function
sleep(ms:
number):void
Stops execution for a specified amount of time.
Warning: This stops execution of both the JavaScript runtime and the game thread. This is only for specific use cases (use setTimeout instead.)
Source: script.d.ts:31
| Parameter | Type | Description |
|---|---|---|
| ms | number |
The amount of time to sleep. |
void