Garry's Mod Wiki

Entity:EyeAngles

Angle Entity:EyeAngles()

Description

Returns the direction a player/npc/ragdoll is looking as a world-oriented angle.

This can return an incorrect value in pods.
This can return an incorrect value in jeeps when used with Player:EnterVehicle.

Returns

1 Angle
eyeAng

Example

Print the local player's angles

print(LocalPlayer():EyeAngles())
Output: When looking straight down, it might return Angle(89,-175.38,0)

Page Links


Special Pages


Wikis

?

Render Time: 28ms

DB GetPage 2
Generate Html 3
SaveChanges (1) 9
Render Body 0
Render Sidebar 12