OnDeath
From GECK
This block will be run once when the scripted actor is killed by the specified ActorID. If no parameter (parameter meaning, in this case, "superchampion", or actorid) is used, the block will be run when the scripted actor dies.
Contents
Syntax
begin OnDeath ActorID (optional)
Example
begin OnDeath SuperChampion
Notes
- If a script calls SayTo and the actor dies while talking, ondeath triggers AFTER sayto is done.
- OnDeath will only trigger after fDyingTimer elapses, which is 2 seconds in vanilla.
See Also
- OnMurder
- SetJohnnyOnDyingEventHandler triggers as soon as the actor dies (doesn't wait for fDyingTimer).
- This blocktype is available as an Event Handler.