Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 751 Bytes

File metadata and controls

27 lines (15 loc) · 751 Bytes

Latite Scripting Documentation (Exports)


Exports > script > sleep

sleep()

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

Parameters

Parameter Type Description
ms number The amount of time to sleep.

Returns

void