Garry's Mod Wiki

Entity:SetParentPhysNum

  Entity:SetParentPhysNum( number bone )

Description

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.

Arguments

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