Garry's Mod Wiki

Revision Difference

Player:ViewPunch#512586

<function name="ViewPunch" parent="Player" type="classfunc">⤶ <description>Simulates a push on the client's screen.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="PunchAngle" type="Angle">The angle in which to push the player&#x27;s screen.</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Knocks the player's camera upward</description>⤶ <code>player:ViewPunch(Angle(-10, 0, 0))</code>⤶ ⤶ </example>