Skip to content

Function: waitGame()

ts
function waitGame(timeToWait?: Nillable<number>): void;

Lock script execution based on game time.

Parameters

ParameterTypeDefault valueDescription
timeToWaitNillable<number>nullGame-time duration to wait, or null to yield once.

Returns

void