Background for Skyrim SE
Member of the Actor script
ActorfunctionGetKiller()Native

Description

Wiki Description

Obtains the actor that killed this one. If this actor isn't dead, returns None.

Documentation Comment

Returns this actor's killer - or None if this actor is still alive


Caveats

CK Wiki - Notes

  • This function will always return the player as the killer, if an actor is killed by a follower, and possibly summoned actors.

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

Auto-Generated Example

Actor returnedValue = myActor__toCallFunctionOn.GetKiller()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.