ResetShakeCamera

From Multi Theft Auto: Wiki
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