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.
This will return the local player's EyeAngles in rendering hooks.
This will return Angle(0,0,0) in rendering hooks while paused in single-player.

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: 30ms

Session 0
DB GetPage 2
Generate Html 1
SaveChanges 11
Render Body 0
Render Sidebar 13