enableChannel: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 81: | Line 81: | ||
|x1= <code>0 enableChannel false; {{cc|disable user ability to send voice and text on global channel}}</code> | |x1= <code>0 enableChannel false; {{cc|disable user ability to send voice and text on global channel}}</code> | ||
|x2= <code>0 enableChannel [<nowiki/>true, | |x2= <code>0 enableChannel [<nowiki/>true, false]; {{cc|enable user ability to send text but disable voice on global channel}}</code> | ||
|seealso= [[currentChannel]] [[setCurrentChannel]] [[getPlayerChannel]] [[channelEnabled]] [[radioChannelCreate]] | |seealso= [[currentChannel]] [[setCurrentChannel]] [[getPlayerChannel]] [[channelEnabled]] [[radioChannelCreate]] | ||
}} | }} |
Revision as of 11:09, 12 May 2022
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
- Return Value:
- 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
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