AnimActionRest()

From NWN Lexicon

If injured find the best place to rest, based on the mobility setting, and go rest there.

Contents

[edit] Description

If injured and mobile, find the nearest NW_SAFE waypoint, go to it using ActionMoveToLocation(), and rest.

Returns TRUE on success, FALSE on failure.

[edit] Remarks

Before the creature is moved to their safe location, ClearActions() (a wrapper for ClearAllActions()) is called to clear their queue.

[edit] Requirements

#include "x0_i0_anims"

[edit] Version

???

[edit] See Also

functions:  ActionRest
events:  OnRested Event


author: Baragg, editor: Mistress

Personal tools
Categories