Entity/GetBonePosition

From Garry's Mod
Revision as of 12:35, 13 February 2019 by Code gs (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Entity:GetBonePosition( )

Contents

Description

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

BUG

This can return the server's position during server lag.

Issue Tracker: #884

BUG

This can return garbage serverside or Vector(0,0,0) for v49 models.

Issue Tracker: #3285

BUG

This can return garbage if a trace passed through the target bone during bone matrix access.

Issue Tracker: #3739

Arguments

number boneIndex

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

Returns

Vector

The bone's position relative to the world.

Returns

Angle

The bone's angle relative to the world.
Personal tools
Navigation