Skip to main content

Cam::setGameplayCamShakeAmplitude

Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake. Used in script 'drunk_controller.ysc.c4' to simulate making the player drunk.

- Shawn

Syntax

```js mp.game.cam.setGameplayCamShakeAmplitude(amplitude); ```

Required Arguments

  • amplitude: float

Return value

  • Undefined

Example

```js // todo ```

See also