SetPlayerVoiceBroadcastTo: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Server function}} | {{Server function}} | ||
__NOTOC__ | __NOTOC__ | ||
This function allows you to change who can hear the voice of a player | This function allows you to change who can hear the voice of a player. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setPlayerVoiceBroadcastTo ( element thePlayer, mixed broadcastTo | bool setPlayerVoiceBroadcastTo ( element thePlayer, mixed broadcastTo ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 12: | Line 12: | ||
*'''thePlayer:''' The [[player]] you wish to change | *'''thePlayer:''' The [[player]] you wish to change | ||
*'''broadcastTo :''' Element or table of elements who should hear the voice from this player | *'''broadcastTo :''' Element or table of elements who should hear the voice from this player | ||
===Returns=== | ===Returns=== |
Revision as of 13:56, 22 August 2011
This function allows you to change who can hear the voice of a player.
Syntax
bool setPlayerVoiceBroadcastTo ( element thePlayer, mixed broadcastTo )
Required Arguments
- thePlayer: The player you wish to change
- broadcastTo : Element or table of elements who should hear the voice from this player
Returns
Returns true if the value was set successfully, false otherwise.
Example
Click to collapse [-]
ServerSee 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