Garry's Mod Wiki

Revision Difference

Entity:SetShouldServerRagdoll#528768

<function name="SetShouldServerRagdoll" parent="Entity" type="classfunc"> <description> Sets if entity should create a server ragdoll on death or a client one. <note>Player ragdolls created with this enabled will have an owner set, see <page>Entity:SetOwner</page> for more information on what effects this has.</note>⤶ ⤶ <note>This is reset for players when they respawn. (<page>Entity:Spawn</page>)</note> <note>Player ragdolls created with this enabled will have an owner set, see <page>Entity:SetOwner</page> for more information on what effects this has.⤶ This is reset for players when they respawn (<page>Entity:Spawn</page>).</note> </description> <realm>Shared</realm> <args> <arg name="serverragdoll" type="boolean">Set true if ragdoll should be created on server, false if on client</arg>⤶ <arg name="serverragdoll" type="boolean">Set `true` if ragdoll should be created on server, `false` if on client.</arg>⤶ </args> </function>