Entity.TranslatePhysBoneToBone
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.TranslatePhysBoneToBone]Entity.TranslatePhysBoneToBone [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Translates the trace's PhysicsBone to bone number. |
---|---|
Used on | |
Code | local tr = pl:GetEyeTrace() local bone = tr.Entity:TranslatePhysBoneToBone(tr.PhysicsBone) |
Output | None |
Additional notes
- If the physics bone doesn't exist, this function will return -1.