Difference between revisions of "GetKiller - Actor"
Jump to navigation
Jump to search
imported>Rhavlovick m (1 revision: Clobber re-import by Henning) |
imported>Terra Nova2 m (Function returns the player if actors killed by followers.) |
||
Line 23: | Line 23: | ||
endIf | endIf | ||
</source> | </source> | ||
== Notes == | |||
* This function will always return the player as the killer, if an actor is killed by a follower, and possibly summoned actors. | |||
== See Also == | == See Also == | ||
*[[Actor Script]] | *[[Actor Script]] | ||
*[[Kill - Actor]] | *[[Kill - Actor]] |
Latest revision as of 11:07, 2 September 2014
Member of: Actor Script
Obtains the actor that killed this one. If this actor isn't dead, returns None.
Syntax[edit | edit source]
Actor Function GetKiller() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The actor that killed this one (if any). If actor is not dead, returns None.
Examples[edit | edit source]
; 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
Notes[edit | edit source]
- This function will always return the player as the killer, if an actor is killed by a follower, and possibly summoned actors.