Entity.TranslatePhysBoneToBone

From GMod Wiki

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



Examples

DescriptionTranslates the trace's PhysicsBone to bone number.
Used onNewerShared.png
Code
local tr = pl:GetEyeTrace()
local bone = tr.Entity:TranslatePhysBoneToBone(tr.PhysicsBone)
OutputNone


Additional notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox