Entity.TranslateBoneToPhysBone

From GMod Wiki

Revision as of 14:51, 25 July 2011 by Winded (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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