Garry's Mod Wiki

Entity:SetShouldServerRagdoll

  Entity:SetShouldServerRagdoll( boolean serverragdoll )

Description

Sets if entity should create a server ragdoll on death or a client one.

This is reset for players when they respawn (Entity:Spawn).

Player ragdolls created with this enabled will have an owner set, see Entity:SetOwner for more information on what effects this has.

Arguments

1 boolean serverragdoll
Set true if ragdoll should be created on server, false if on client.