ActionRest()
Causes the creature to rest.
void ActionRest();
Description
The calling creature will enter the rest modal mode.
This function is only applicable for creature type objects.
Remarks
ActionRest is added to the front of the action queue. If you want to add it as a normal action, you can call ActionDoCommand(ActionRest());
There is no default behavior for resting non-PC creatures (the OnRested default script is empty). So if you wish anything to happen, you have to code it yourself.
Version
1.22
See Also
functions: | GetLastRestEventType |
categories: | Action on Object Functions |
author: Troels Therkelsen, editor: Lilac Soul, additional contributor(s): Lilac Soul
Send comments on this topic.