ShakeCamera: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Add shakeCamera by Tracer (https://github.com/multitheftauto/mtasa-blue/pull/3585))
 
mNo edit summary
Line 1: Line 1:
{{Client function}}  
{{Client function}}  
__NOTOC__  
__NOTOC__
 
<!-- Change to proper build from https://buildinfo.multitheftauto.com -->
{{Added feature/item|1.6.1|1.6.0|22629|
This function allows you to create camera shake effect (just like explosion does).
This function allows you to create camera shake effect (just like explosion does).
}}


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool shakeCamera( float power, [float x, float y, float z] )
bool shakeCamera ( float power, [ float x, float y, float z ] )
</syntaxhighlight>  
</syntaxhighlight>  



Revision as of 17:29, 21 July 2024


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