Garry's Mod Wiki

Revision Difference

Entity:GetBonePosition#518534

<function name="GetBonePosition" parent="Entity" type="classfunc"> <description> Returns the position and angle of the given attachment, relative to the world. <bug issue="884">This can return the server's position during server lag.</bug> <bug issue="3285">This can return garbage serverside or <page>Global.Vector</page>(0,0,0) for v49 models.</bug> <bug issue="3739">This can return garbage if a trace passed through the target bone during bone matrix access.</bug> </description> <realm>Shared</realm> <args> <arg name="boneIndex" type="number">The bone index of the bone to get the position of. See &lt;page&gt;Entity:LookupBone&lt;/page&gt;.</arg> <arg name="boneIndex" type="number">The bone index of the bone to get the position of. See <page>Entity:LookupBone</page>.</arg> </args> <rets> <ret name="" type="Vector">The bone's position relative to the world.</ret> <ret name="" type="Angle">The bone's angle relative to the world.</ret> </rets> </function>