SetPlayerBlurLevel: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(default blur level: 36 , not 38) |
||
Line 11: | Line 11: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePlayer:''' The [[player]] whose blur level will be changed. | *'''thePlayer:''' The [[player]] whose blur level will be changed. | ||
*'''level:''' The level to set the blur to (default: | *'''level:''' The level to set the blur to (default: 36) | ||
</section> | </section> | ||
Line 20: | Line 20: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''level:''' The level to set the blur to (default: | *'''level:''' The level to set the blur to (default: 36) | ||
</section> | </section> | ||
Revision as of 09:43, 12 July 2009
Sets the motion blur level on the clients screen. Accepts a value between 0 and 255.
Syntax
Click to collapse [-]
Serverbool setPlayerBlurLevel ( player thePlayer, int level )
Required Arguments
- thePlayer: The player whose blur level will be changed.
- level: The level to set the blur to (default: 36)
Click to collapse [-]
Clientbool setBlurLevel ( int level )
Required Arguments
- level: The level to set the blur to (default: 36)
Example
Click to collapse [-]
ServerThis example allows the player to set their blur level via a command
function changeBlurLevel ( playerSource, command, blur ) blur = tonumber(blur) if not blur or blur > 255 or blur < 0 then outputChatBox ( "Enter a value between 0 - 255.", playerSource ) else setPlayerBlurLevel ( playerSource, blur ) outputChatBox ( "Blur level set to: " .. blur, playerSource ) end end addCommandHandler("blur", changeBlurLevel)
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState