GetPlayerBlurLevel: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
</syntaxhighlight>
</syntaxhighlight>
[[Category:Incomplete]]
[[Category:Incomplete]]
==Example==
<!-- Explain what the example is in a single sentance -->
This will show the blur level to the player.
<!-- Add the code below, an emphasis should be on making it clear, not optimized. You could provide two versions if you wish, one clear and well commented, the other optimized -->
<syntaxhighlight lang="lua">
function changeBlurLevel(playerSource)
    blur = getPlayerBlurLevel(playerSource)
    outputChatBox("Blur level:" .. blur, playerSource)
end
addCommandHandler("blurlevel", changeBlurLevel)
-- Typ /blurlevel to check the blur level
</syntaxhighlight>

Revision as of 20:36, 16 February 2008

Syntax

int getPlayerBlurLevel ( player thePlayer )

Example

This will show the blur level to the player.

function changeBlurLevel(playerSource)
    blur = getPlayerBlurLevel(playerSource)
    outputChatBox("Blur level:" .. blur, playerSource)
end
addCommandHandler("blurlevel", changeBlurLevel)
-- Typ /blurlevel to check the blur level