Player.GetPunchAngle
From GMod Wiki
| Function | |
| Syntax | Player.GetPunchAngle( ) |
| Description: | |
| Returns the player's current view punch angles. | |
| Returns: | Angle |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetPunchAngle]Player.GetPunchAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | N/A | ||
|---|---|---|---|
| Used on | |||
| Code |
| ||
| Output | N/A |
Additional Notes
- A player's view punch angle is the angular offset between the direction he is aiming (which isn't modified) and the direction he is looking (which is).
- This is set by recoiling HL2 weapons, and by the Player.ViewPunch function.
- View punch angles naturally approach Angle( 0, 0, 0 ) over time.