Garry's Mod Wiki

Revision Difference

Entity:TranslateBoneToPhysBone#518297

<function name="TranslateBoneToPhysBone" parent="Entity" type="classfunc"> <description> Returns the ID of a <page>PhysObj</page> attached to the given bone. To be used with <page>Entity:GetPhysicsObjectNum</page>. See <page>Entity:TranslatePhysBoneToBone</page> for reverse function. </description> <realm>Shared</realm> <args> <arg name="boneID" type="number">The ID of a bone to look up the &quot;physics root&quot; bone of.</arg> <arg name="boneID" type="number">The ID of a bone to look up the "physics root" bone of.</arg> </args> <rets> <ret name="" type="number">The <page>PhysObj</page> ID of the given bone. * -1 if we somehow cannot translate</ret> </rets> </function>