EnablePlayerVoiceTo: Difference between revisions

From RAGE Multiplayer Wiki
(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(Client player, Client target);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.EnablePlayerVoiceTo(Player player, Player target);}}


{{Parameters}}
{{Parameters}}
*'''player:''' Parameter input should be in '''Client''' type.
*'''player:''' Parameter input should be in '''Player''' type.
*'''target:''' Parameter input should be in '''Client''' type.
*'''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);