CUserCmd:SetViewAngles
Description
Sets the direction the client wants to move in.
For human players, the pitch (vertical) angle should be clamped to +/- 89° to prevent the player's view from glitching.
For fake clients (those created with player.CreateNextBot), this functionally dictates the 'move angles' of the bot. This typically functions separately from the colloquial view angles. This can be utilized by CUserCmd:SetForwardMove and its related functions.
Arguments
Example
Locks the player's view to only vertical movement.