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
Parameter | Type | Description |
---|---|---|
ms | number | Delay in milliseconds |
Example
ts
player.useSkill(Skills.Anatomy);
sleep(10000); // sleep 10 seconds
player.useSkill(Skills.Meditation);