Garry's Mod Wiki

Player:ViewPunch

  Player:ViewPunch( Angle PunchAngle )

Description

Simulates a push on the client's screen. This adds view punch velocity, and does not touch the current view punch angle, for which you can use Player:SetViewPunchAngles.

Arguments

1 Angle PunchAngle
The angle in which to push the player's screen.

Example

Knocks the player's camera upward

Entity( 1 ):ViewPunch( Angle( -10, 0, 0 ) )