Skip to content
ts
function sleep(ms: number): void;

Delays script execution for a certain number of milliseconds.

Note: The delay timing for long durations is not guaranteed.

Parameters

ParameterTypeDescription
msnumberDelay in milliseconds

Example

ts
player.useSkill(Skills.Anatomy);
sleep(10000); // sleep 10 seconds
player.useSkill(Skills.Meditation);