TalentRangedAttackers
From NWN Lexicon
Contents |
[edit] TalentRangedAttackers(object)
Determines course of action for spell-casting NPC while being attacked by ranged foes.
int TalentRangedAttackers( object oIntruder = OBJECT_INVALID );
[edit] Parameters
oIntruder
(Default: OBJECT_INVALID)
[edit] Description
Targets ranged attacker as long as not currently in melee. If current ranged attacker is alone, checks OBJECT_SELF for appropriate AREA EFFECT (discriminant) attack and if OBJECT_SELF and target are more than 5 meters apart.
If more than one attacker, checks for a AREA EFFECT (indiscriminant) talent, if both AREA EFFECT checks are invalid, does a RANGED attack talent check.
[edit] Requirements
#include " x0_i0_talent "
[edit] Version
1.29
[edit] See Also
functions: | |
events: |
author: Jody Fletcher, editor: Mistress