ShakeCamera

From Multi Theft Auto: Wiki
Revision as of 17:29, 21 July 2024 by Tracer (talk | contribs)
Jump to navigation Jump to search


BETA: NEW FEATURE (BUILD: 1.6.0 r22629)

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