GetKiller - Actor
Revision as of 15:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
Member of: Actor Script
Obtains the actor that killed this one. If this actor isn't dead, returns None.
Syntax
Actor Function GetKiller() native
Parameters
None.
Return Value
The actor that killed this one (if any). If actor is not dead, returns None.
Examples
; Print a message if Bob is in combat with the player
if (Bob.GetKiller() == Game.GetPlayer())
Debug.Trace("Bob was killed by the player!")
endIf