Garry's Mod Wiki

Revision Difference

Player:ViewPunch#527040

<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's screen.</arg> </args> </function> <example> <description>Knocks the player's camera upward</description> <code>player:ViewPunch(Angle(-10, 0, 0))</code> <code>Entity(1):ViewPunch(Angle(-10, 0, 0))</code> </example>