Skip to content
Haru edited this page Oct 19, 2016 · 1 revision

Category:Script_Command

Syntax

  • awake "NPC Name";
  • sleep <milliseconds></milliseconds>;
  • sleep2 <milliseconds></milliseconds>;

Description

These commands are used to control the pause of a NPC. Commands sleep and sleep2 will pause the script for the given amount of milliseconds. Awake is used to cancel a sleep. When awake is called on a NPC it will run as if the sleep timer ran out, and thus making the script continue. Sleep and sleep2 basically do the same, but the main difference is that sleep will not keep the RID, while sleep2 does.

Examples

sleep 10000&amp;&#35;59&#59; //pause the script for 10 seconds and ditch the RID (so no player is attached anymore)
sleep2 5000&amp;&#35;59&#59; //pause the script for 5 seconds, and continue with the RID attached.
awake &amp;quot&#59;NPC&amp;quot&#59;&amp;&#35;59&#59; //Cancels any running sleep timers on the NPC &amp;&#35;39&#59;NPC&amp;&#35;39&#59;.
Clone this wiki locally