OnPlayerDeath

The script attached to this event fires when a player has been reduced to -10 hit points or less. This event could be used to create changes in the storyline, record the deaths of all the players on the server to display at the town square, etc.


Trigger

Occurs when a PC dies.


Function(s)

GetLastPlayerDied() to return the PC who just died.


Remarks

The "nw_o0_death" script is normally used for this module event. This script clears the relationship of the standard factions to the player and determines when the "Death GUI Panel" appears that allows the player to exit NWN or respawn.


See Also

Objects with Events | Module
functions: GetLastPlayerDied


 Send comments on this topic.