Garry's Mod Wiki

Entity:GetAngles

  Angle Entity:GetAngles()

Description

Gets the angles of given entity.

This returns incorrect results for the local player clientside.

Issue Tracker: 2764
This will return the local player's EyeAngles in rendering hooks.

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

Issue Tracker: 3107

Returns

1 Angle
The angles of the entity.

Example

Prints the 1st player's angles.

Output: Something like "0.000 34.529 0.000" in console.