GetLastAttackType

From NWN Lexicon



Contents

[edit] GetLastAttackType(object)

Determine the attack type of a creature's last attack.

int GetLastAttackType(
    object oCreature = OBJECT_SELF
);

[edit] Parameters

oCreature

Creature which is attacking. (Default: OBJECT_SELF)


[edit] Description

Returns the attack type (SPECIAL_ATTACK_*) of oCreature's last attack. Returns SPECIAL_ATTACK_INVALID if creature is not in combat, or if no special attack was used.



[edit] Remarks

This only works when oCreature is in combat.


[edit] Version

1.22

[edit] See Also

constants: 

SPECIAL_ATTACK_* Constants



 author: Jason Harris, editor: Kristian Markon
 

Personal tools
Categories