currentChannel: Difference between revisions

From Bohemia Interactive Community
No edit summary
No edit summary
 
(43 intermediate revisions by 4 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


|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
{{!}}-
{{!}} {{n/a}}
{{!}} Global
{{!}} Side
{{!}} Command
{{!}} Group
{{!}} Vehicle
{{!}} Direct
{{!}} Custom1
{{!}} rowspan="2" {{!}} ..
{{!}} Custom10
{{!}} {{GVI|arma3|2.22|size= 0.75}} Custom11
{{!}} rowspan="2" {{!}} ..
{{!}} Custom50
{{!}}-
{{!}} -1
{{!}} 0
{{!}} 1
{{!}} 2
{{!}} 3
{{!}} 4
{{!}} 5
{{!}} 6
{{!}} 15
{{!}} 26
{{!}} 65
{{!}}}


__________________________________________________________________________________________
For Custom Radio, see [[radioChannelCreate]].


| Returns number of currently selected user voice channel. Channel / Number correspondence:
|s1= [[currentChannel]]
* 0 - Global
* 1 - Side
* 2 - Command
* 3 - Group
* 4 - Vehicle
* 5 - Direct
* 6 - Custom channel 1
* 7 - Custom channel 2 etc.
|= Description
____________________________________________________________________________________________


| '''currentChannel'''|= Syntax
|r1= [[Number]] - channel ID (see [[BIS_fnc_channelNumToRadioChannelID]], [[BIS_fnc_radioChannelIDToChannelNum]])


|p1= |= Parameter 1
|x1= <sqf>_selected = currentChannel; // 3 for the Group channel</sqf>
 
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <code>_current = [[currentChannel]]; //3</code> |= Example 1
____________________________________________________________________________________________
 
|[[getPlayerChannel]], [[setCurrentChannel]], [[enableChannel]]|= See also


|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}}}}]]
[[Category:Command_Group:_Radio_Control|{{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