Garry's Mod Wiki

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

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

Returns

1 number
The PhysObj ID of the given bone.

  • -1 if we somehow cannot translate

Page Links


Special Pages


Wikis

?

Render Time: 36ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 9
Render Body 0
Render Sidebar 14