RemoveDeadPawn

From The KillerJim Mod Wiki

PlayerProxy::RemoveDeadPawn

RemoveDeadPawn.png

Server Only Function - This is an function executes only on the server.

Description

This function is used to remove the dead pawn of the player.

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).

When the player dies the PlayerDead event is fired; the pawn provided by this event should be passed to this function to immediately remove pawns (or after a small delay if you want the rag-doll to stay for a few seconds).

Arguments
1 APawn Player Pawn
The pawn for which the dead body needs removed

Playing

Developers

Developer Reference