Garry's Mod Wiki

Entity:GetBonePosition

Vector, Angle Entity:GetBonePosition( number boneIndex )

Description

Returns the position and angle of the given attachment, relative to the world.

This can return the server's position during server lag.
This can return garbage serverside or Vector(0,0,0) for v49 models.
This can return garbage if a trace passed through the target bone during bone matrix access.

Arguments

1 number boneIndex
The bone index of the bone to get the position of. See Entity:LookupBone.

Returns

1 Vector
The bone's position relative to the world.
2 Angle
The bone's angle relative to the world.

Page Links


Special Pages


Wikis

?

Render Time: 33ms

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