currentChannel: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "channelID" to "channelID")
No edit summary
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
______________________________________________________________________________________________


| a3 |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"
 
! colspan="13" {{!}} [[Channel IDs|channel ID]] number correspondence
| Returns currently selected user chat channel on the UI (selected with < and > in MP).
{{{!}} class{{=}}"wikitable" style{{=}}"text-align: center"
! colspan{{=}}"16" {{!}} channel ID number correspondence
{{!}}-
{{!}}-
{{!}} {{n/a}}
{{!}} Global
{{!}} Global
{{!}} Side
{{!}} Side
Line 20: Line 18:
{{!}} Direct
{{!}} Direct
{{!}} Custom1
{{!}} Custom1
{{!}} Custom2
{{!}} rowspan="2" {{!}} ..
{{!}} Custom3
{{!}} Custom4
{{!}} Custom5
{{!}} Custom6
{{!}} Custom7
{{!}} Custom8
{{!}} Custom9
{{!}} Custom10
{{!}} Custom10
{{!}} {{GVI|arma3|2.22|size= 0.75}} Custom11
{{!}} rowspan="2" {{!}} ..
{{!}} Custom50
{{!}}-
{{!}}-
{{!}} -1
{{!}} 0
{{!}} 0
{{!}} 1
{{!}} 1
Line 37: Line 32:
{{!}} 5
{{!}} 5
{{!}} 6
{{!}} 6
{{!}} 7
{{!}} 8
{{!}} 9
{{!}} 10
{{!}} 11
{{!}} 12
{{!}} 13
{{!}} 14
{{!}} 15
{{!}} 15
{{!}} 26
{{!}} 65
{{!}}}
{{!}}}
For Custom Radio (see [[radioChannelCreate]])
|DESCRIPTION=
____________________________________________________________________________________________


| '''currentChannel'''|SYNTAX=
For Custom Radio, see [[radioChannelCreate]].


|p1= |PARAMETER1=
|s1= [[currentChannel]]


| [[Number]] - [[Channel IDs|channelID]] |RETURNVALUE=
|r1= [[Number]] - channel ID (see [[BIS_fnc_channelNumToRadioChannelID]], [[BIS_fnc_radioChannelIDToChannelNum]])
____________________________________________________________________________________________
 
|x1= <code>_selected = [[currentChannel]]; // 3 - for example for the Group</code> |EXAMPLE1=
____________________________________________________________________________________________


|[[setCurrentChannel]], [[getPlayerChannel]], [[enableChannel]], [[channelEnabled]], [[radioChannelCreate]]|SEEALSO=
|x1= <sqf>_selected = currentChannel; // 3 for the Group channel</sqf>


|seealso= [[setCurrentChannel]] [[getPlayerChannel]] [[enableChannel]] [[channelEnabled]] [[radioChannelCreate]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

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