Entity.EyeAngles

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:EyeAngles( )
Description:
In the case of a ragdoll, returns the directions the eyes are pointing. In the case of a player, returns the angle that the player is looking at as an angle.
Returns: Angle
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.EyeAngles]Entity.EyeAngles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

Descriptionprints your eye angles
Used onNewerClient.png
Code
print(LocalPlayer():EyeAngles())
OutputEyeAngles


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox