GetAttackTarget

From NWN Lexicon



Contents

[edit] GetAttackTarget(object)

Determines the current foe under attack by the specified creature.

object GetAttackTarget(
    object oCreature = OBJECT_SELF
);

[edit] Parameters

oCreature

Creature currently involved in combat. (Default: OBJECT_SELF)


[edit] Description

Returns the last target that you have attempted to resolve an attack against during this round. It gets cleared when the attack action is removed or you lose your target (if they die or go invisible) or the round ends.
.



[edit] Version

1.26

[edit] See Also

functions: 

GetIsInCombat

events: 

OnPhysicalAttacked Event



 author: Jody Fletcher, editor: Charles Feduke, additional contributor(s): Jon McCarty, Noel Borstad
 

Personal tools
Categories