ResetShakeCamera: Difference between revisions

From Multi Theft Auto: Wiki
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 chaking effect caused by '''shakeCamera'''
This function cancels the shaking effect caused by '''shakeCamera'''
}}
}}



Latest revision as of 04:31, 24 March 2025

BETA: NEW FEATURE (BUILD: 1.6.0 r22631)

This function cancels the shaking effect caused by shakeCamera

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