Entity/TranslateBoneToPhysBone

From Garry's Mod
Revision as of 00:15, 8 November 2019 by Code gs (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Entity:TranslateBoneToPhysBone( )

Description

Returns the ID of a PhysObj attached to the given bone. To be used with Entity:GetPhysicsObjectNum.

See Entity:TranslatePhysBoneToBone for reverse function.

Arguments

number boneID

The ID of a bone to look up the "physics root" bone of.

Returns

number

The PhysObj ID of the given bone.

  • -1 if we somehow cannot translate
Personal tools
Navigation