TalentFlee(object)
Make the calling object flee from another object.
int TalentFlee( object oIntruder = OBJECT_INVALID );
Parameters
oIntruder
Creature type object to flee from (Default: OBJECT_INVALID)
Description
Make the calling object flee from oIntruder, using the function ActionMoveAwayFromObject(). If oIntruder is dead or otherwise no longer available, the calling object will try to flee from the nearest enemy instead.
This function returns TRUE if fleeing was triggered, FALSE if it wasn't.
Remarks
If oIntruder is a valid object, but outside the fleeing range (10.0f) of the calling object, calling TalentFlee() has no effect. This is as you would expect, however, TRUE is returned, which perhaps is not what you'd expect.
Requirements
#include "x0_i0_talent"
Version
1.22
See Also
functions: | ActionMoveAwayFromObject |
categories: | Action on Object Functions | Combat Actions Functions | Core AI Talent Functions | Talents/Skills/Feats Functions |
author: Troels Therkelsen, editors: Michael Nork, Mistress