Garry's Mod Wiki


  Entity:SetParentPhysNum( number bone )


Sets the parent of an entity to another entity with the given physics bone number. Similar to Entity:SetParent, except it is parented to a physbone. This function is useful mainly for ragdolls.

Despite this function being available server side, it doesn't actually do anything server side.


1 number bone
Physics bone number to attach to. Use 0 for objects with only one physics bone. (See Entity:GetPhysicsObjectNum)