Description
Enables/disables UI functionality which is responsible for sending text or voice chat to the given chat channel.
Note
This command:
- can override Description.ext or server config's channel setting
- 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
- actively interrupts (since Arma 3 v2.02) the current communication in progress
- does not affect chat related scripting commands such as vehicleChat, globalRadio etc.
| 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 |
Syntax
Syntax 1
channelID enableChannel enable
Parameters:
channelID: Number - channel IDenable: Boolean - true to enable, false to disable (both VoN and chat)
Returns: Nothing
Syntax 2
since arma3 1.60
channelID enableChannel [chat, VoN]
Parameters:
channelID: Number - channel IDchat: Boolean - true to enable text chatVoN: Boolean - true to enable voice chatenableMapMarkers: Boolean - (Optional, default true) true to enable map marker placement (since arma3 2.22)enableMapDrawing: Boolean - (Optional, default true) true to enable drawing on the map (since arma3 2.22)
Returns: Nothing
Examples
Example 1
0 enableChannel false; // disable user ability to send voice and text on global channel
Example 2
0 enableChannel [true, false]; // enable user ability to send text but disable voice on global channel
See also
currentChannel · setCurrentChannel · getPlayerChannel · channelEnabled · radioChannelCreate