Garry's Mod Wiki

Revision Difference

Entity:LookupBone#514680

<function name="LookupBone" parent="Entity" type="classfunc">⤶ <description>Gets the bone index of the given bone name, returns nothing if the bone does not exist.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="boneName" type="string">The name of the bone.&#xA;&#xA;Common generic bones ( for player models and some HL2 models ): &#xA;* ValveBiped.Bip01_Head1&#xA;* ValveBiped.Bip01_Spine&#xA;* ValveBiped.Anim_Attachment_RH&#xA;&#xA;Common hand bones (left hand equivalents also available, replace _R_ with _L_)&#xA;* ValveBiped.Bip01_R_Hand&#xA;* ValveBiped.Bip01_R_Forearm&#xA;* ValveBiped.Bip01_R_Foot&#xA;* ValveBiped.Bip01_R_Thigh&#xA;* ValveBiped.Bip01_R_Calf&#xA;* ValveBiped.Bip01_R_Shoulder&#xA;* ValveBiped.Bip01_R_Elbow</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">Index of the given bone name</ret>⤶ </rets>⤶ </function>⤶ ⤶