GetLastKiller()

Get the object that killed the caller.

object GetLastKiller();

Description

Returns an object representing the object that killed the calling object.



Remarks

Only works when called from an NPC or creature. Does not work during the OnPlayerDeath event of a module (returns OBJECT_INVALID in this case).


Version

1.61

See Also

functions: GetLastAttacker | GetLastDamager | GetLastHostileActor | GetLastOpener
categories: Combat Information Functions | Get Data from Creature Functions


 author: John Shuell, editor: Charles Feduke, additional contributor(s): Eric Collazo