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: ActivateFleeToExit
categories: Core AI Functions | Get Data from Creature Functions


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