Garry's Mod Wiki

Revision Difference

Entity:GetBoneParent#515722

<function name="GetBoneParent" parent="Entity" type="classfunc">⤶ <description>⤶ Returns parent bone of given bone.⤶ ⤶ <note>Will return -1 for <page>Global.ClientsideModel</page> until <page>Entity:SetupBones</page> is called on the entity.</note>⤶ </description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="bone" type="number">The bode ID of the bone to get parent of</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">Parent bone ID or -1 if we failed for some reason.</ret>⤶ </rets>⤶ </function>⤶ ⤶