Garry's Mod Wiki

Entity:GetParentPhysNum

  number Entity:GetParentPhysNum()

Description

If the entity is parented to an entity that has a model with multiple physics objects (like a ragdoll), this is used to retrieve what physics object number the entity is parented to on it's parent.

Returns

1 number
The physics object id, or nil if the entity has no parent