currentChannel: Difference between revisions

From Bohemia Interactive Community
(Add v2.22's new channels)
m (Fix)
Line 8: Line 8:
|descr= Returns currently selected user chat channel on the UI (selected with {{Controls|<}} and {{Controls|>}} in multiplayer).
|descr= Returns currently selected user chat channel on the UI (selected with {{Controls|<}} and {{Controls|>}} in multiplayer).
{{{!}} class="wikitable align-center"
{{{!}} class="wikitable align-center"
! colspan="17" {{!}} [[Channel IDs|channel ID]] number correspondence
! colspan="13" {{!}} [[Channel IDs|channel ID]] number correspondence
{{!}}-
{{!}}-
{{!}} {{n/a}}
{{!}} {{n/a}}

Revision as of 18:47, 20 November 2025

Hover & click on the images for description

Description

Description:
Returns currently selected user chat channel on the UI (selected with < and > in multiplayer).
channel ID number correspondence
N/A Global Side Command Group Vehicle Direct Custom1 .. Custom10 Arma 3 logo black.png 2.22 Custom11 .. Custom50
-1 0 1 2 3 4 5 6 15 26 65
For Custom Radio, see radioChannelCreate.
Groups:
Radio and Chat

Syntax

Syntax:
currentChannel
Return Value:
Number - channel ID

Examples

Example 1:
_selected = currentChannel; // 3 for the Group channel

Additional Information

See also:
setCurrentChannel getPlayerChannel enableChannel channelEnabled radioChannelCreate

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note