Kill - Actor

Member of: Actor Script

Kills this actor with the passed-in actor being the culprit.

SyntaxEdit

Function Kill(Actor akKiller = None) native

ParametersEdit

  • akKiller: The Actor who is the guilty party in killing this one.
    • Default: None

Return ValueEdit

None.

ExamplesEdit

; Have the dragon kill the poor sod
PoorSod.Kill(Dragon)

NotesEdit

This awards no XP to the player, even with the player as the killer. This can be seen with the Sandman Kill. The Sandman perk performs a StartVampireFeed animation, waits 3 seconds, then performs Kill, and we get no XP.

To apply to a victim who is an object reference (eg Thisreference), first create an actor form: in the example above, precede with the declaration

Actor PoorSod = Thisreference as actor

See AlsoEdit