ResetShakeCamera

From Multi Theft Auto: Wiki
Revision as of 08:57, 31 July 2024 by Tracer (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

BETA: NEW FEATURE (BUILD: 1.6.0 r22631)

This function cancels the chaking 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