GetAttackTarget(object)

Determines the current foe under attack by the specified creature.

object GetAttackTarget(
    object oCreature = OBJECT_SELF
);

Parameters

oCreature

Creature currently involved in combat. (Default: OBJECT_SELF)


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.
.



Version

1.26

See Also

functions: ActionAttack | CheckFriendlyFireOnTarget | GetAttackCompatibility | GetAttemptedAttackTarget | GetIsFighting | GetIsInCombat
categories: Combat Information Functions | Targeting Functions
events: OnCombatRoundEnd Event | OnPhysicalAttacked Event


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