Arma 3 Scripting

Command in Radio and Chat

setCurrentChannel

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

Description

Sets given channel as current chat channel. Scripted way of selecting desired channel on the UI. The given channel may be disabled (see enableChannel), this is why this command returns boolean, true on success or false on failure.

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

setCurrentChannel channelID

Parameters:

Returns: Boolean - true on success

Examples

Example 1

_isDirectSelected = setCurrentChannel 5; // sets Direct channel as current active

See also

getPlayerChannel · currentChannel · enableChannel · channelEnabled · radioChannelCreate