awake()
¶
Warning
This page may contain outdated information, incompatible with the current version of Hercules and its coding standards.
Syntax¶
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.