EnablePlayerVoiceTo: Difference between revisions
(Created page with "Enables the voice transmission to a target.<br/> Use DisablePlayerVoiceTo to disable it again.<br/> To use the voice-chat you can activate it in the Server_settings....") |
No edit summary |
||
| Line 4: | Line 4: | ||
To use the voice-chat you can activate it in the [[Server_settings]]. | To use the voice-chat you can activate it in the [[Server_settings]]. | ||
{{CSharpContainer| | {{CSharpContainer| | ||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.EnablePlayerVoiceTo( | {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.EnablePlayerVoiceTo(Player player, Player target);}} | ||
{{Parameters}} | {{Parameters}} | ||
*'''player:''' Parameter input should be in ''' | *'''player:''' Parameter input should be in '''Player''' type. | ||
*'''target:''' Parameter input should be in ''' | *'''target:''' Parameter input should be in '''Player''' type. | ||
{{Example}} | {{Example}} | ||
Latest revision as of 19:44, 22 December 2022
Enables the voice transmission to a target.
Use DisablePlayerVoiceTo to disable it again.
To use the voice-chat you can activate it in the Server_settings.
C# Syntax
void NAPI.Player.EnablePlayerVoiceTo(Player player, Player target);
Parameters
- player: Parameter input should be in Player type.
- target: Parameter input should be in Player type.
Example
NAPI.Player.EnablePlayerVoiceTo(player, target);