ResetShakeCamera: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client function}} __NOTOC__ {{Added feature/item|1.6.1|1.6.0|22631| This function cancels the chaking effect caused by '''shakeCamera''' }} ==Syntax== <syntaxhighlight lang="lua"> bool resetShakeCamera ( ) </syntaxhighlight> ===Returns=== Always returns ''true''. ==Example== This example allows you to trigger huge camera shake effect near you and then cancels the effect after 5 seconds. <syntaxhighlight lang="lua"> addCommandHandler('doShake', function() sh...") |
m (Typo) |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
{{Added feature/item|1.6.1|1.6.0|22631| | {{Added feature/item|1.6.1|1.6.0|22631| | ||
This function cancels the | This function cancels the shaking effect caused by '''shakeCamera''' | ||
}} | }} | ||
Latest revision as of 04:31, 24 March 2025
Syntax
bool resetShakeCamera ( )
Returns
Always returns true.
Example
This example allows you to trigger huge camera shake effect near you and then cancels the effect after 5 seconds.
addCommandHandler('doShake', function() shakeCamera(100) setTimer(resetShakeCamera, 5000, 1) end)
See Also
- getCamera
- getCameraClip
- getCameraFieldOfView
- getCameraGoggleEffect
- getCameraViewMode
- setCameraClip
- setCameraFieldOfView
- setCameraGoggleEffect
- setCameraViewMode
- Shared
- fadeCamera
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- setCameraInterior
- setCameraMatrix
- setCameraTarget