Entity.LookupBone
From GMod Wiki
Function | |
Syntax | Entity:LookupBone( String attachmentName ) |
Description: | |
Returns the bone index of the given attachment. | |
Returns: | Integer |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.LookupBone]Entity.LookupBone [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Use SourceSDK model veiwer to get bone names. function returns a index for use with Entity.GetBonePosition
- Common generic bones (left hand equivalents also available for all): ValveBiped.Bip01_Head1, ValveBiped.Anim_Attachment_RH, ValveBiped.Bip01_Spine, ValveBiped.Bip01_R_Hand, ValveBiped.Bip01_R_Forearm, ValveBiped.Bip01_R_Foot, ValveBiped.Bip01_R_Thigh, ValveBiped.Bip01_R_Calf, ValveBiped.Bip01_R_Shoulder, ValveBiped.Bip01_R_Elbow.