ShakeCamera

From Multi Theft Auto: Wiki
Revision as of 17:27, 21 July 2024 by Srslyyyy (talk | contribs) (Add shakeCamera by Tracer (https://github.com/multitheftauto/mtasa-blue/pull/3585))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function allows you to create camera shake effect (just like explosion does).

Syntax

bool shakeCamera( float power, [float x, float y, float z] )

Required arguments

  • power: Intensity and time of the shake.

Optional Arguments

  • x: Center X coordinate of the shake.
  • y: Center Y coordinate of the shake.
  • z: Center Z coordinate of the shake.

If not given, it will defaults to local player position.

Returns

Always returns true.

Example

TODO

-- TODO

See Also