GetFleeToExit
From NWN Lexicon
Jump to navigationJump to search
GetFleeToExit()
Returns TRUE if the executing object can use ActivateFleeToExit.
int GetFleeToExit();
Description
Returns TRUE if the executing object can use ActivateFleeToExit.
This function merely checks that the correct spawn-in conditions have been set on an NPC for it to be able to ActivateFleeToExit. It does not check for the presence of an exit Waypoint, if one is necessary.
Requirements
#include " nw_i0_generic "
Version
1.62
Example
// If we can, leave.
if (GetFleeToExit()) ActivateFleeToExit();
See Also
| functions: |
author: Iskander Merriman, editor: Lilac Soul, additional contributor(s): Wayne Miller