Garry's Mod Wiki


  Angle Entity:EyeAngles()


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

This can return an incorrect value in vehicles (like pods, buggy, ...). This bug has been fixed in the past but was causing many addons being broken, so the fix has been removed but applied to Player:GetAimVector only.

Issue Tracker: 1150
This may return local angles in jeeps when used with Player:EnterVehicle. A workaround is available in the second example.

Issue Tracker: 2620


1 Angle
Player's eye angle.


Print the local player's angles.

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


Fix the issue with vehicles when used with Player:EnterVehicle.