Garry's Mod Wiki

Garry's Mod Wiki

  Player:ViewPunch( Angle punchAngle )

Description

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

Despite being defined shared, it only functions when called server-side.

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...