Player.SnapEyeAngles

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SnapEyeAngles( Angle aim )
Description:
Sets player Eye angle to the specified angle.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SnapEyeAngles]Player.SnapEyeAngles [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionSet a player's eye angle.
Used onNewerServer.png
Code
player.GetByID(1):SnapEyeAngles( Angle(0,0,0) )
Outputplayer's view instantly points at Angle(0,0,0)
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox