SetPlayerVoiceBroadcastTo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Server function}}
{{Server function}}
__NOTOC__  
__NOTOC__  
<div style="border: 1px dotted blue; background: #00CC66;padding:4px;margin-bottom:2px;">'''Note''':  This function should only be used as a low-level function for advanced users.  For typical Voice scripting, please see the [[Resource:Voice|Voice Resource]]</div>
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.



Revision as of 19:17, 22 August 2011

Note: This function should only be used as a low-level function for advanced users. For typical Voice scripting, please see the Voice Resource

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 [-]
Server

See Also