Skip to main content

Cam::clampGameplayCamPitch

minimum: Degrees between -90f and 90f. maximum: Degrees between -90f and 90f.

Clamps the gameplay camera's current pitch.

Eg. _CLAMP_GAMEPLAY_CAM_PITCH(0.0f, 0.0f) will set the vertical angle directly behind the player.

Syntax​

```js mp.game.cam.clampGameplayCamPitch(minimum, maximum); ```

Required Arguments​

  • minimum: float
  • maximum: float

Return value​

  • unknown (to be checked)

Example​

```js // todo ```

See also​