Garry's Mod Wiki

Entity:EyeAngles

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 jeeps when used with Player:EnterVehicle.

Issue Tracker: 2620

Returns

1 Angle
Local player's eye angle.

Example

Print the local player's angles.

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

Special Pages


Wikis

?

Render Time: 56ms

DB GetPage 35
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 6