Entity/GetAngles

From Garry's Mod
Jump to: navigation, search
 Entity:GetAngles( )

Contents

Description

Gets the angles of given entity.

BUG

This returns incorrect results for the local player clientside.

Issue Tracker: #2764

BUG

This will return the local player's EyeAngles in rendering hooks.

Issue Tracker: #3106

BUG

This will return Angle(0,0,0) in rendering hooks while paused in single-player.

Issue Tracker: #3107

Returns

Angle

The angles of the entity.

Examples

Example

Prints the 1st player's angles.

print( player.GetByID(1):GetAngles() )

Output:

Something like "0.000 34.529 0.000" in console.
Personal tools
Navigation