PlayerDead

From The KillerJim Mod Wiki

Gamemode::PlayerDead

PlayerDead.png

Server Only Event - This is an event that only fires on the server

Description

This event is called when a player dies (i.e. health is zero or below).

When a player dies KJMod will not automatically remove the pawn for game-modes that require the pawn to stay around (such as checking dead bodies in TTT, or to allow players to remove items from bodies). Most game-modes will remove the pawn after a set period of time by calling the RemoveDeadPawn function.

'Note: If you do not remove the pawn it will stay in the server until the map changes or a reboot happens. This could literally choke a server with dead bodies (or more likely prevent players from playing due to having to render thousands of dead bodies).

Arguments
1 APawn DeadPawn
A direct reference to the dead players pawn

Playing

Developers

Developer Reference