Arma 3 Scripting

Command in Radio and Chat

getPlayerChannel

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns channel number for given player, provided that player is SPEAKING, otherwise -1. Having mic on is not enough, player has to make a sound. There are several limitations to this command:

channel ID number correspondence
N/A Global Side Command Group Vehicle Direct Custom1 .. Custom10 Arma 3 v2.22 Custom11 .. Custom50
-1 0 1 2 3 4 5 6 15 26 65

Syntax

getPlayerChannel player

Parameters:

Returns: Number - channel ID

Examples

Example 1

private _channelID = getPlayerChannel player;

See also

setCurrentChannel · currentChannel · enableChannel · channelEnabled · radioChannelCreate · radioChannelInfo