currentChannel: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
No edit summary
 
(24 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma3 |Game name=
|game1= arma3
|version1= 1.42


|1.42|Game version=
|gr1= Radio and Chat


|gr1= Radio and Chat |GROUP1=
|descr= Returns currently selected user chat channel on the UI (selected with {{Controls|<}} and {{Controls|>}} in multiplayer).
 
{{{!}} class="wikitable align-center"
| Returns currently selected user chat channel on the UI (selected with < and > in MP).
! colspan="13" {{!}} [[Channel IDs|channel ID]] number correspondence
{{{!}} class{{=}}"wikitable" style{{=}}"text-align: center"
! colspan{{=}}"16" {{!}} channel ID number correspondence
{{!}}-
{{!}}-
{{!}} colspan{{=}}"6" {{!}} Default Channels
{{!}} {{n/a}}
{{!}} colspan{{=}}"10" {{!}} Custom Channels
{{!}}- style{{=}}"font-size: .9em"
{{!}} Global
{{!}} Global
{{!}} Side
{{!}} Side
Line 20: Line 17:
{{!}} Vehicle
{{!}} Vehicle
{{!}} Direct
{{!}} Direct
{{!}} CC&nbsp;1
{{!}} Custom1
{{!}} CC&nbsp;2
{{!}} rowspan="2" {{!}} ..
{{!}} CC&nbsp;3
{{!}} Custom10
{{!}} CC&nbsp;4
{{!}} {{GVI|arma3|2.22|size= 0.75}} Custom11
{{!}} CC&nbsp;5
{{!}} rowspan="2" {{!}} ..
{{!}} CC&nbsp;6
{{!}} Custom50
{{!}} CC&nbsp;7
{{!}} CC&nbsp;8
{{!}} CC&nbsp;9
{{!}} CC&nbsp;10
{{!}}-
{{!}}-
{{!}} -1
{{!}} 0
{{!}} 0
{{!}} 1
{{!}} 1
Line 38: Line 32:
{{!}} 5
{{!}} 5
{{!}} 6
{{!}} 6
{{!}} 7
{{!}} 8
{{!}} 9
{{!}} 10
{{!}} 11
{{!}} 12
{{!}} 13
{{!}} 14
{{!}} 15
{{!}} 15
{{!}} 26
{{!}} 65
{{!}}}
{{!}}}
For Custom Radio, see [[radioChannelCreate]].
For Custom Radio, see [[radioChannelCreate]].
|DESCRIPTION=


| '''currentChannel''' |SYNTAX=
|s1= [[currentChannel]]


|p1= |PARAMETER1=
|r1= [[Number]] - channel ID (see [[BIS_fnc_channelNumToRadioChannelID]], [[BIS_fnc_radioChannelIDToChannelNum]])


| [[Number]] - channelID |RETURNVALUE=
|x1= <sqf>_selected = currentChannel; // 3 for the Group channel</sqf>
 
|x1= <code>_selected = [[currentChannel]]; {{cc|3 - for example for the Group}}</code> |EXAMPLE1=


| [[setCurrentChannel]], [[getPlayerChannel]], [[enableChannel]], [[channelEnabled]], [[radioChannelCreate]] |SEEALSO=
|seealso= [[setCurrentChannel]] [[getPlayerChannel]] [[enableChannel]] [[channelEnabled]] [[radioChannelCreate]]
}}
}}
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 21:34, 21 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 (see BIS_fnc_channelNumToRadioChannelID, BIS_fnc_radioChannelIDToChannelNum)

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.
Only post proven facts here! Add Note