Garry's Mod Wiki


  Entity:SetShouldServerRagdoll( boolean serverragdoll )


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

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

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


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