GetLastAttacker
From NWN Lexicon
Contents |
[edit] GetLastAttacker(object)
Determine who last attacked a creature, door or placeable object.
object GetLastAttacker( object oAttackee = OBJECT_SELF );
[edit] Parameters
oAttackee
Attacked object. (Default: OBJECT_SELF)
[edit] Description
Returns the last attacker of oAttackee. This should be used ONLY in the OnPhysicalAttacked events for creatures, placeables and doors.
Return OBJECT_INVALID on error.
[edit] Remarks
Remarks: I cannot for the life of me figure out why the description for this function says it should only be called from OnPhysicalAttacked. Iâve tried calling it from all sorts of events, even some not owned by the creature, and all of them work just fine, even a while after Iâve stopped attacking oAttackee.
[edit] Version
1.30
[edit] See Also
functions: | |
events: |
author: Jason Harris, editor: Lilac Soul, additional contributor(s): Lilac Soul