Entity.TranslateBoneToPhysBone

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:TranslateBoneToPhysBone( Integer bone_number )
Description:
Returns the Physics Bone number corresponding this bone number.
Returns: Integer Physics Bone number
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.TranslateBoneToPhysBone]Entity.TranslateBoneToPhysBone [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionFinds the ragdoll's head bone and gets the number of its Physics Bone. (Works only on TF2 models)
Used onNewerShared.png
Code
local bone = ent:LookupBone("bip_head")
local physbone = ent:TranslateBoneToPhysBone(bone)
OutputNone


Additional notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox