Kill - Actor
Jump to navigation
Jump to search
Member of: Actor Script
Kills this actor with the passed-in actor being the culprit.
Syntax[edit | edit source]
Function Kill(Actor akKiller = None) nativeParameters[edit | edit source]
- akKiller: The Actor who is the guilty party in killing this one.
- Default: None
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Have the dragon kill the poor sod
PoorSod.Kill(Dragon)Notes[edit | edit source]
- Calling this function on an alias, who has the protected flag set, will cause the alias to enter an infinite bleedout state when "killed". A workaround is to pass the player as akKiller.
- A game crash is possible if Kill() is called a significant amount of times in a short period on eg spawned actors. Around 15-25 times usually triggers it. If you find this is happening, a workaround is to cause damage to the actor in excess of their health with eg...
self.DamageAV("Health", 5000.0)