enableChannel: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
|||
Line 23: | Line 23: | ||
* 5 <nowiki>=</nowiki> Direct | * 5 <nowiki>=</nowiki> Direct | ||
* 6-15 <nowiki>=</nowiki> Custom Radio (Is not supported by [[enableChannel]]) | * 6-15 <nowiki>=</nowiki> Custom Radio (Is not supported by [[enableChannel]]) | ||
|= | |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| channel '''enableChannel''' enable|= | | channel '''enableChannel''' enable|SYNTAX= | ||
|p1= channel: [[Number]] |= | |p1= channel: [[Number]] |PARAMETER1= | ||
|p2= enable: [[Boolean]] - enable both VoN and chat |= | |p2= enable: [[Boolean]] - enable both VoN and chat |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|s2= channel '''enableChannel''' [chat, VoN] ''since Arma 3 v1.59.135661''|= | |s2= channel '''enableChannel''' [chat, VoN] ''since Arma 3 v1.59.135661''|SYNTAX= | ||
|p21= channel: [[Number]] |= | |p21= channel: [[Number]] |PARAMETER1= | ||
|p22= [chat, VoN]: [[Array]] |= | |p22= [chat, VoN]: [[Array]] |PARAMETER2= | ||
|p23= chat: [[Boolean]] - [[true]] to enable text chat|= | |p23= chat: [[Boolean]] - [[true]] to enable text chat|PARAMETER3= | ||
|p24= VoN: [[Boolean]] - [[true]] to enable voice chat|= | |p24= VoN: [[Boolean]] - [[true]] to enable voice chat|PARAMETER4= | ||
|r2= [[Nothing]] |= | |r2= [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>0 [[enableChannel]] [[false]]; // Disable user ability to send voice and text on global channel</code> |= | |x1= <code>0 [[enableChannel]] [[false]]; // Disable user ability to send voice and text on global channel</code> |EXAMPLE1= | ||
|x2= <code>0 [[enableChannel]] <nowiki>[</nowiki>[[true]], [[false]]]; // Enable user ability to send text but disable voice on global channel</code> |= | |x2= <code>0 [[enableChannel]] <nowiki>[</nowiki>[[true]], [[false]]]; // Enable user ability to send text but disable voice on global channel</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[currentChannel]], [[setCurrentChannel]], [[getPlayerChannel]], [[channelEnabled]], [[radioChannelCreate]]|= | |[[currentChannel]], [[setCurrentChannel]], [[getPlayerChannel]], [[channelEnabled]], [[radioChannelCreate]]|SEEALSO= | ||
}} | }} |
Revision as of 14:38, 7 April 2019
Description
- Description:
- Enables/disables UI functionality which is responsible for sending text or voice chat to the given chat channel. If the channel was disabled in description.ext, it can be enabled with this command, however the UI functionality changes will be local to the PC executing this command. What this command cannot do:
- It cannot disable incoming text or voice
- It cannot interrupt own client's transmission in progress
- It cannot affect any Custom Radio channels, only channels 0-5
- It cannot persist, so if user is logged out, the changes are reset
- It has no effect on chat related scripting commands, such as vehicleChat, globalChat, globalRadio, sideRadio, etc.
- 0 = Global
- 1 = Side
- 2 = Command
- 3 = Group
- 4 = Vehicle
- 5 = Direct
- 6-15 = Custom Radio (Is not supported by enableChannel)
- Groups:
- Uncategorised
Syntax
- Syntax:
- channel enableChannel enable
- Parameters:
- channel: Number
- enable: Boolean - enable both VoN and chat
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- channel enableChannel [chat, VoN] since Arma 3 v1.59.135661
- Parameters:
- channel: Number
- [chat, VoN]: Array
- 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
Notes
Bottom Section
- Posted on June 17, 2016 - 21:48 (UTC)
- AgentRev
- If the user is admin, global channel is fully enabled, regardless of this command.
- Posted on July 30, 2016 - 15:46 (UTC)
- Lucian
- Alternative Syntax supports Custom Radio Channels