A recent function updated in...

When I saw ‘Added Entity:TranslateBoneToPhysBone( bone )’ on the update list I didn’t know exactly what it was, but if it’s as self explanatory as it looks it’s exactly what I need.

Can someone explain to me what exactly it does?

Just from the name of the function I think that it will give you the physics object that is tied to a certain bone, but the best way to find out is to go ingame and see for yourself.

For instance try typing this in the console in singleplayer :

lua_run print(Entity(1):TranslateBoneToPhysBone(Entity(1):LookupBone("ValveBiped.Bip01_Head1")))

That crashed Garry’s Mod.


I was hoping it was something along the lines of individual bones being ragdolled.


No seriously, that’s bad.

And yeah I’m pretty sure it only gives you a reference to an object and doesn’t affect the entity at all.

Okay, my dreams are crushed.

Thanks for the help.