GetFleeToExit

From NWN Lexicon
Jump to navigationJump to search



GetFleeToExit()

Note: This function page documents something only available in the nw_i0_generic include file. The function may not be accurately documented here but you can read the nwscript code for the function in the game files.

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: 

ActivateFleeToExit



 author: Iskander Merriman, editor: Lilac Soul, additional contributor(s): Wayne Miller