GetPlayerVoiceMode

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

getPlayerVoiceMode

Returns the player's authoritative voice routing mode.

Syntax

string|false getPlayerVoiceMode(int playerId)

Parameters

Name Type Required Description
playerId int yes The connected player identifier.

Returns

Returns disabled, proximity, channel, or global; returns false for an invalid player.

Examples

Read the routing mode:

local mode = getPlayerVoiceMode(playerId)
if mode then
    outputDebugString(mode)
end

Notes

  • Available only in server-side resource scripts.