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.

print( player.GetByID(1):GetAngles() )
Output: Something like "0.000 34.529 0.000" in console.

Page Links


Special Pages


Wikis

?

Render Time: 69ms

DB GetPage 38
Generate Html 4
SaveChanges (1) 14
Render Body 0
Render Sidebar 10