Entity/EyeAngles

From Garry's Mod
Revision as of 15:51, 30 July 2018 by Code gs (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 Entity:EyeAngles( )

Contents

Description

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

BUG

This can return an incorrect value in pods.

Issue Tracker: #1150

BUG

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

Issue Tracker: #2620

Returns

Angle

eyeAng

Examples

Example

Print the local player's angles

print(LocalPlayer():EyeAngles())

Output:

When looking straight down, it might return Angle(89,-175.38,0)
Personal tools
Navigation