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: 41ms

Session 0
DB GetPage 8
Generate Html 11
SaveChanges 8
Render Body 0
Render Sidebar 11