ShakeCamera: Difference between revisions
Jump to navigation
Jump to search
(Add shakeCamera by Tracer (https://github.com/multitheftauto/mtasa-blue/pull/3585)) |
(No difference)
|
Revision as of 17:27, 21 July 2024
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
- getCamera
- getCameraClip
- getCameraFieldOfView
- getCameraGoggleEffect
- getCameraViewMode
- setCameraClip
- setCameraFieldOfView
- setCameraGoggleEffect
- setCameraViewMode
- Shared
- fadeCamera
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- setCameraInterior
- setCameraMatrix
- setCameraTarget