enableChannel: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
(updated syntax) |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 9: | Line 9: | ||
|descr= Enables/disables UI functionality which is responsible for sending text or voice chat to the given chat channel. | |descr= Enables/disables UI functionality which is responsible for sending text or voice chat to the given chat channel. | ||
{{Feature| | {{Feature|informative| | ||
This command: | This command: | ||
* can override [[Description.ext]] or [[server | * can override [[Description.ext]] or [[Arma 3: Server Config File|server config]]'s channel setting | ||
* cannot disable Global channel for the admin or server host, because Global channel is always available for the admin | * cannot disable Global channel for the admin or server host, because Global channel is always available for the admin | ||
* does not disable ''incoming'' text or voice | * does not disable ''incoming'' text or voice | ||
| Line 18: | Line 18: | ||
}} | }} | ||
{{{!}} class | {{{!}} class="wikitable align-center" | ||
! colspan | ! colspan="16" {{!}} [[Channel IDs|Channel ID]] number correspondence | ||
{{!}}- | {{!}}- | ||
{{!}} colspan | {{!}} colspan="6" {{!}} Default Channels | ||
{{!}} colspan | {{!}} colspan="10" {{!}} Custom Channels | ||
{{!}}- style | {{!}}- style="font-size: .9em" | ||
{{!}} Global | {{!}} Global | ||
{{!}} Side | {{!}} Side | ||
| Line 76: | Line 76: | ||
|p23= VoN: [[Boolean]] - [[true]] to enable voice chat | |p23= VoN: [[Boolean]] - [[true]] to enable voice chat | ||
|p24= enableMapMarkers: [[Boolean]] - (Optional, default [[true]]) [[true]] to enable map marker placement | |||
|p24since= arma3 2.22 | |||
|p25= enableMapDrawing: [[Boolean]] - (Optional, default [[true]]) [[true]] to enable drawing on the map | |||
|p25since= arma3 2.22 | |||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
| Line 81: | Line 89: | ||
|x1= <sqf>0 enableChannel false; // disable user ability to send voice and text on global channel</sqf> | |x1= <sqf>0 enableChannel false; // disable user ability to send voice and text on global channel</sqf> | ||
|x2= < | |x2= <sqf>0 enableChannel [true, false]; // enable user ability to send text but disable voice on global channel</sqf> | ||
|seealso= [[currentChannel]] [[setCurrentChannel]] [[getPlayerChannel]] [[channelEnabled]] [[radioChannelCreate]] | |seealso= [[currentChannel]] [[setCurrentChannel]] [[getPlayerChannel]] [[channelEnabled]] [[radioChannelCreate]] | ||
}} | }} | ||
Latest revision as of 13:32, 19 April 2026
Description
- Description:
- Enables/disables UI functionality which is responsible for sending text or voice chat to the given chat channel.
Channel ID number correspondence Default Channels Custom Channels Global Side Command Group Vehicle Direct CC 1 CC 2 CC 3 CC 4 CC 5 CC 6 CC 7 CC 8 CC 9 CC 10 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 - Groups:
- Radio and Chat
Syntax
- Syntax:
- channelID enableChannel enable
- Parameters:
- channelID: Number - channel ID
- enable: Boolean - true to enable, false to disable (both VoN and chat)
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- channelID enableChannel [chat, VoN]
- Parameters:
- channelID: Number - channel ID
- chat: Boolean - true to enable text chat
- VoN: Boolean - true to enable voice chat
- since
2.22 - enableMapMarkers: Boolean - (Optional, default true) true to enable map marker placement
- since
2.22 - enableMapDrawing: Boolean - (Optional, default true) true to enable drawing on the map
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note