Cam::shakeCinematic

From RAGE Multiplayer Wiki
Revision as of 18:56, 5 November 2024 by Shr0x (talk | contribs)

Client-Side
Function

 JavaScript



JavaScript Syntax


Explanation

This function triggers a cinematic camera shake effect. The intensity and style of the shake are determined by the parameters. This can add visual impact to events such as explosions, collisions, or high-speed moments, enhancing immersion during gameplay.

Required Params

  • type: string - The type of shake effect to apply (e.g., "HAND_SHAKE", "SMALL_EXPLOSION_SHAKE").
  • intensity: number - The intensity of the shake effect (typically ranges from 0.0 to 1.0).

Return value

  • void

Syntax

mp.game.cam.shakeCinematic(type, intensity)

Example

The following example applies a hand-held camera shake effect with medium intensity:

mp.game.cam.shakeCinematic("HAND_SHAKE", 0.5);


See also