channelEnabled: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
mNo edit summary
 
Line 57: Line 57:
* chat - is use of the text chat enabled
* chat - is use of the text chat enabled
* VoN - is use of the voice chat enabled
* VoN - is use of the voice chat enabled
* mapMarkers - {{GVI|arma3|2.20|size= 0.75}} can map markers be created
* {{GVI|arma3|2.20|size= 0.75}} mapMarkers - can map markers be created
* mapDrawing - {{GVI|arma3|2.20|size= 0.75}} can players draw on the map
* {{GVI|arma3|2.20|size= 0.75}} mapDrawing - can players draw on the map


|x1= <sqf>_isGlobalChatEnabled = (channelEnabled 0) select 0; // check if user can use text on global channel</sqf>
|x1= <sqf>_isGlobalChatEnabled = (channelEnabled 0) select 0; // check if user can use text on global channel</sqf>

Latest revision as of 14:30, 5 April 2026

Hover & click on the images for description

Description

Description:
Returns Array of Booleans in format [enabledChat, enabledVoN] for the given channel. For more information about enabling/disabling of chat channels see enableChannel.
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:
channelEnabled channelID
Parameters:
channelID: Number - Channel ID (see description)
Return Value:
Array with [chat, VoN, mapMarkers, mapDrawing]
  • chat - is use of the text chat enabled
  • VoN - is use of the voice chat enabled
  • Arma 3 logo black.png 2.20 mapMarkers - can map markers be created
  • Arma 3 logo black.png 2.20 mapDrawing - can players draw on the map

Examples

Example 1:
_isGlobalChatEnabled = (channelEnabled 0) select 0; // check if user can use text on global channel
Example 2:
_isGlobalVoiceEnabled = (channelEnabled 0) select 1; // check if user can use the VoN on global channel
Example 3:
// sets all variables (channelEnabled 0) params [ "_isGlobalChatEnabled", "_isGlobalVoiceEnabled", "_areMarkersEnabled", "_isMapDrawingEnabled" ];

Additional Information

See also:
currentChannel setCurrentChannel getPlayerChannel enableChannel radioChannelCreate

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note