"On death" script to run when a thing is killed
Like "On touch", things should have a script that gets run when it is killed.
The script is run before the thing enters its Death/XDeath state.Variables available in the script:
- self is the thing that is being killed
- killer is the killer (can be