SetCameraShakeLevel
Jump to navigation
Jump to search
Function sets the camera shake level.
Syntax
bool setCameraShakeLevel ( int shakeLevel )
Required Arguments
- shakeLevel: Integer between 0 - 255 which represent camera shake level
Returns
Returns true if camera shake level was changed, false otherwise.
Example
addCommandHandler("camshake", function( cmd, level ) if setCameraShakeLevel( tonumber(level) ) then outputChatBox( "Camera shake level updated." ) else outputChatBox( "Camera shake level must be between 0 - 255." ) end end )
See Also
- getCamera
- getCameraClip
- getCameraFieldOfView
- getCameraGoggleEffect
- getCameraViewMode
- setCameraClip
- setCameraFieldOfView
- setCameraGoggleEffect
- setCameraViewMode
- Shared
- fadeCamera
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- setCameraInterior
- setCameraMatrix
- setCameraTarget