Arma 3 Scripting

getPlayerChannel

  • Global argument
  • Arma 3 v1.42

Command · Markdown · JSON · 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:

In short, this command mimics the speaking icon from the UI. Correspondence between channel and number:

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