GetPlayerBlurLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (fix oop syntax) |
||
(6 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{Server client function}} | |||
This function allows you to check the current blur level of a specified [[player]]. | |||
==Syntax== | ==Syntax== | ||
<section name="Server" class="server" show="true"> | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
int getPlayerBlurLevel ( player thePlayer ) | int getPlayerBlurLevel ( player thePlayer ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[ | {{OOP||[[player]]:getBlurLevel||setPlayerBlurLevel}} | ||
===Required Arguments=== | |||
*'''thePlayer:''' The [[player]] whose blur level you want to check. | |||
===Returns=== | |||
Returns the player's blur level if successful, ''false'' if an invalid player was given. | |||
</section> | |||
<section name="Client" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | |||
int getBlurLevel () | |||
</syntaxhighlight> | |||
{{OOP||[[Player]].getBlurLevel|blurLevel|setPlayerBlurLevel}} | |||
===Returns=== | |||
Returns the local blur level. | |||
</section> | |||
==Example== | ==Example== | ||
< | <section name="Server" class="server" show="true"> | ||
This | This example adds a command ''blurlevel'' with which you can check your current blur level. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function | function checkBlurLevel( playerSource ) | ||
blur = getPlayerBlurLevel(playerSource) | local blur = getPlayerBlurLevel( playerSource ) | ||
outputChatBox("Blur level:" .. blur, playerSource) | if blur then | ||
outputChatBox( "Blur level: " .. blur, playerSource ) | |||
end | |||
end | end | ||
addCommandHandler("blurlevel", | addCommandHandler("blurlevel", checkBlurLevel) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | |||
==See Also== | |||
{{Player functions}} |
Latest revision as of 04:13, 29 December 2014
This function allows you to check the current blur level of a specified player.
Syntax
Click to collapse [-]
Serverint getPlayerBlurLevel ( player thePlayer )
OOP Syntax Help! I don't understand this!
- Method: player:getBlurLevel(...)
- Counterpart: setPlayerBlurLevel
Required Arguments
- thePlayer: The player whose blur level you want to check.
Returns
Returns the player's blur level if successful, false if an invalid player was given.
Click to collapse [-]
Clientint getBlurLevel ()
OOP Syntax Help! I don't understand this!
- Method: Player.getBlurLevel(...)
- Variable: .blurLevel
- Counterpart: setPlayerBlurLevel
Returns
Returns the local blur level.
Example
Click to collapse [-]
ServerThis example adds a command blurlevel with which you can check your current blur level.
function checkBlurLevel( playerSource ) local blur = getPlayerBlurLevel( playerSource ) if blur then outputChatBox( "Blur level: " .. blur, playerSource ) end end addCommandHandler("blurlevel", checkBlurLevel)
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