GetKiller - Actor

From the Fallout4 CreationKit Wiki
Revision as of 16:26, 18 October 2011 by imported>Vitamant (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

See Also[edit | edit source]