Garry's Mod Wiki

Garry's Mod Wiki

  CSEnt ClientsideRagdoll( string model, number renderGroup = RENDERGROUP_OPAQUE )


Creates a fully clientside ragdoll.

The ragdoll initially starts as hidden and with shadows disabled, see the example for how to enable it.

There's no need to call Entity:Spawn on this entity.

Clientside entities are not garbage-collected, thus you must store a reference to the object and call CSEnt:Remove manually.

Issue Tracker: 1387


1 string model
The file path to the model.
2 number renderGroup = RENDERGROUP_OPAQUE
The RENDERGROUP enum to assign.


1 CSEnt
The newly created client-side only ragdoll. (C_ClientRagdoll)


Creates a new ragdoll with the player model of breen and enables rendering and shadows.

concommand.Add( "test_csragdoll", function( ply ) local ragdoll = ClientsideRagdoll( "models/player/breen.mdl" ) ragdoll:SetNoDraw( false ) ragdoll:DrawShadow( true ) --print( ragdoll ) end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...