setCurrentChannel: Difference between revisions
Killzone Kid (talk | contribs) (description) |
Lou Montana (talk | contribs) (Add v2.22's new channels) |
||
| (65 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| | |game1= arma3 | ||
|version1= 1.42 | |||
| | |eff= local | ||
| | |gr1= Radio and Chat | ||
| Sets given channel as current channel. | |descr= Sets given channel as current chat channel. Scripted way of selecting desired channel on the UI. | ||
The given channel may be disabled (see [[enableChannel]]), this is why this command returns boolean, [[true]] on success or [[false]] on failure. | |||
{{{!}} 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 | |||
{{!}}} | |||
| | |s1= [[setCurrentChannel]] channelID | ||
|p1= | |p1= channelID: [[Number]] - [[Channel IDs|channel ID]] | ||
| [[Boolean]] | |r1= [[Boolean]] - [[true]] on success | ||
| | |x1= <sqf>_isDirectSelected = setCurrentChannel 5; // sets Direct channel as current active</sqf> | ||
|seealso= [[getPlayerChannel]] [[currentChannel]] [[enableChannel]] [[channelEnabled]] [[radioChannelCreate]] | |||
}} | }} | ||
Latest revision as of 18:47, 20 November 2025
Description
- Description:
- Sets given channel as current chat channel. Scripted way of selecting desired channel on the UI.
The given channel may be disabled (see enableChannel), this is why this command returns boolean, true on success or false on failure.
channel ID number correspondence N/A Global Side Command Group Vehicle Direct Custom1 .. Custom10
2.22 Custom11
.. Custom50 -1 0 1 2 3 4 5 6 15 26 65 - Groups:
- Radio and Chat
Syntax
- Syntax:
- setCurrentChannel channelID
- Parameters:
- channelID: Number - channel ID
- Return Value:
- Boolean - true on success
Examples
- Example 1:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note