currentChannel: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(description see also)
Line 9: Line 9:
__________________________________________________________________________________________
__________________________________________________________________________________________


| Returns number of currently selected user voice channel. Channel / Number correspondence:  
| Returns currently selected user chat channel on the UI (selected with < and > in MP). Correspondence between channel and number:
* 0 - Global
* 0 <nowiki>=</nowiki> Global
* 1 - Side
* 1 <nowiki>=</nowiki> Side
* 2 - Command
* 2 <nowiki>=</nowiki> Command
* 3 - Group
* 3 <nowiki>=</nowiki> Group
* 4 - Vehicle
* 4 <nowiki>=</nowiki> Vehicle
* 5 - Direct
* 5 <nowiki>=</nowiki> Direct
* 6 - Custom channel 1
* 6-15 <nowiki>=</nowiki> Custom Radio (see [[radioChannelCreate]])
* 7 - Custom channel 2 etc.
|= Description
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 28: Line 27:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_current = [[currentChannel]]; //3</code> |= Example 1
|x1= <code>_selected = [[currentChannel]]; // 3 - for example for the Group</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


|[[getPlayerChannel]], [[setCurrentChannel]], [[enableChannel]]|= See also
|[[setCurrentChannel]], [[getPlayerChannel]], [[enableChannel]], [[channelEnabled]], [[radioChannelCreate]]|= See also


}}
}}

Revision as of 01:43, 3 February 2016

-wrong parameter ("a3") defined!-[[:Category:Introduced with a3 version 1.42|1.42]]
Hover & click on the images for description

Description

Description:
Returns currently selected user chat channel on the UI (selected with < and > in MP). Correspondence between channel and number:
  • 0 = Global
  • 1 = Side
  • 2 = Command
  • 3 = Group
  • 4 = Vehicle
  • 5 = Direct
  • 6-15 = Custom Radio (see radioChannelCreate)
Groups:
Uncategorised

Syntax

Syntax:
currentChannel
Return Value:
Number

Examples

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

Additional Information

See also:
setCurrentChannelgetPlayerChannelenableChannelchannelEnabledradioChannelCreate

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

[[Category:Introduced with a3 version 1.42]][[ Category: a3: New Scripting Commands | CURRENTCHANNEL]][[ Category: a3: Scripting Commands | CURRENTCHANNEL]]

Notes

Bottom Section