OnPlayerDying
The script attached to this event fires when the PC has been reduced to 0 hit points, but not at -10 (this state is considered unconcious). It is possible to just outright kill the PC at this point if there's no one around for ressurrections, but once below 0 hit points the unconcious PC will steadily lose hit points until dead.
Trigger
When a PC has been reduced to less than 0 hit points.
Function(s)
GetLastPlayerDying() returns the PC who triggered this event.
Remarks
"nw_o0_dying" is the default script for this event which applies the EffectDeath effect to the PC to kill him quickly and fire the OnPlayerDeath event. If this script is removed, a PC would bleed to death before officially dying at -10 hit points.
See Also
Objects with Events | Module | |
functions: | GetLastPlayerDying |
Send comments on this topic.