Entity/EyeAngles

From Garry's Mod
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