Garry's Mod Wiki

Player:CreateRagdoll

  Player:CreateRagdoll()

Description

Creates the player's death ragdoll entity and deletes the old one.

This is normally used when a player dies, to create their death ragdoll.

The ragdoll will be created with the player's properties such as Position, Angles, PlayerColor, Velocity and Model.

You can retrieve the entity this creates with Player:GetRagdollEntity.