Entity/GetBoneParent

From Garry's Mod
Jump to: navigation, search
 Entity:GetBoneParent( )

Description

Returns parent bone of given bone.

NOTE

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

Arguments

number bone

The bode ID of the bone to get parent of

Returns

number

Parent bone ID or -1 if we failed for some reason.
Personal tools
Navigation