currentChannel: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (description see also) |
m (template:command argument fix) |
||
Line 17: | Line 17: | ||
* 5 <nowiki>=</nowiki> Direct | * 5 <nowiki>=</nowiki> Direct | ||
* 6-15 <nowiki>=</nowiki> Custom Radio (see [[radioChannelCreate]]) | * 6-15 <nowiki>=</nowiki> Custom Radio (see [[radioChannelCreate]]) | ||
|= | |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''currentChannel'''|= | | '''currentChannel'''|SYNTAX= | ||
|p1= |= | |p1= |PARAMETER1= | ||
| [[Number]] |= | | [[Number]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_selected = [[currentChannel]]; // 3 - for example for the Group</code> |= | |x1= <code>_selected = [[currentChannel]]; // 3 - for example for the Group</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[setCurrentChannel]], [[getPlayerChannel]], [[enableChannel]], [[channelEnabled]], [[radioChannelCreate]]|= | |[[setCurrentChannel]], [[getPlayerChannel]], [[enableChannel]], [[channelEnabled]], [[radioChannelCreate]]|SEEALSO= | ||
}} | }} |
Revision as of 14:37, 7 April 2019
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
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]]