ShakeCamera: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
<!-- Change to proper build from https://buildinfo.multitheftauto.com --> | <!-- Change to proper build from https://buildinfo.multitheftauto.com --> | ||
{{Added feature/item|1.6.1|1.6.0|22629| | {{Added feature/item|1.6.1|1.6.0|22629| | ||
This function allows you to | This function allows you to trigger camera shake effect (just like explosion does). | ||
}} | }} | ||
Revision as of 17:33, 21 July 2024
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