A_SetPitch
From ZDoom Wiki
A_SetPitch (float pitch)
A_SetPitch (float pitch[, int flags]) (development version r3323+ only)
- pitch: The actor's new pitch, in degrees.
- flags: (development version r3323+ only)
- SPF_FORCECLAMP: Forces the pitch to be within [-90, 90] range. This flag is implied for players.
A_SetPitch sets the calling actor's pitch to the value of the first parameter. It can be used with the pitch DECORATE variable to modify the actor's current pitch.
For players, the pitch will be clamped to the [-90, 90] range. The limit can be applied to other actors as well with the SPF_FORCECLAMP flag.