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 ) )

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 16
Render Body 0
Render Sidebar 8