Garry's Mod Wiki

Entity:GetBoneParent

  number Entity:GetBoneParent( number bone )

Description

Returns parent bone of given bone.

Will return -1 for ClientsideModel until Entity:SetupBones is called on the entity.

Arguments

1 number bone
The bone ID of the bone to get parent of, starting at index 0.

Returns

1 number
Parent bone ID or -1 if we failed for some reason.