SetCameraShakeLevel

From Multi Theft Auto: Wiki
Revision as of 14:10, 10 July 2015 by Lopez (talk | contribs) (Created page with "{{Client function}}__NOTOC__ {{Note|Not present in any version yet.}} {{New feature/item|3.0150|1.5|| Function sets the camera shake level. }} == Syntax == <syntaxhighlight lang="lua"> boo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[[{{{image}}}|link=|]] Note: Not present in any version yet.

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