enableChannel: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <nowiki>[</nowiki>" to " [<nowiki/>") |
Lou Montana (talk | contribs) (Fix description and clean comments) |
||
Line 9: | Line 9: | ||
__________________________________________________________________________________________ | __________________________________________________________________________________________ | ||
| Enables/disables UI functionality which is responsible for sending text or voice chat to the given chat channel. If the channel was disabled in [[ | | 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. | ||
* | {{Important | Only the [[#Alternative Syntax|Alternative Syntax]] can affect Custom Radio channels (6-15).}} | ||
* | {{Informative| | ||
* | This command: | ||
* cannot disable global channel for the admin | |||
* does not disable ''incoming'' text or voice | |||
* does not interrupt own client's transmission in progress (but will prevent any further ones) | |||
* 0 | * does not affect chat related scripting commands such as [[vehicleChat]], [[globalRadio]] etc. | ||
* 1 | }} | ||
* 2 | |||
* 3 <nowiki | Channel / Number correspondence: | ||
* 4 | * 0 {{=}} Global | ||
* 5 | * 1 {{=}} Side | ||
* 6-15 | * 2 {{=}} Command | ||
* ''3 {{=}} Group'' (cannot be disabled with [[enableChannel]] nor [[Description.ext#disableChannels|Description.ext/disableChannels[]<nowiki/>]]) | |||
* 4 {{=}} Vehicle | |||
* 5 {{=}} Direct | |||
* 6-15 {{=}} Custom Radio | |||
|DESCRIPTION= | |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| channel | | channel [[enableChannel]] enable |SYNTAX= | ||
|p1= channel: [[Number]] |PARAMETER1= | |p1= channel: [[Number]] |PARAMETER1= | ||
|p2= enable: [[Boolean]] - enable both VoN and chat |PARAMETER2= | |||
|p2= enable: [[Boolean]] - [[true]] to enable, [[false]] to disable (both VoN and chat) |PARAMETER2= | |||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|s2= channel | |s2= channel [[enableChannel]] [chat, VoN] {{since|arma3|1.59.135661|y}} |SYNTAX2= | ||
|p21= channel: [[Number]] |PARAMETER21= | |p21= channel: [[Number]] |PARAMETER21= | ||
|p24= VoN: [[Boolean]] - [[true]] to enable voice chat|PARAMETER4= | |p22= [chat, VoN]: [[Array]] |PARAMETER22= | ||
|p23= chat: [[Boolean]] - [[true]] to enable text chat |PARAMETER23= | |||
|p24= VoN: [[Boolean]] - [[true]] to enable voice chat |PARAMETER4= | |||
|r2= [[Nothing]] |RETURNVALUE2= | |r2= [[Nothing]] |RETURNVALUE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>0 [[enableChannel]] [[false]]; | |x1= <code>0 [[enableChannel]] [[false]]; {{cc|Disable user ability to send voice and text on global channel}}</code> |EXAMPLE1= | ||
|x2= <code>0 [[enableChannel]] [<nowiki/>[[true]], [[false]]]; | |||
|x2= <code>0 [[enableChannel]] [<nowiki/>[[true]], [[false]]]; {{cc|Enable user ability to send text but disable voice on global channel}}</code> |EXAMPLE2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[currentChannel]], [[setCurrentChannel]], [[getPlayerChannel]], [[channelEnabled]], [[radioChannelCreate]]|SEEALSO= | |[[currentChannel]], [[setCurrentChannel]], [[getPlayerChannel]], [[channelEnabled]], [[radioChannelCreate]] |SEEALSO= | ||
}} | }} | ||
Line 61: | Line 68: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category: | [[Category:Command Group: Radio Control|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 15:49, 22 March 2020
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.
Channel / Number correspondence:
- 0 = Global
- 1 = Side
- 2 = Command
- 3 = Group (cannot be disabled with enableChannel nor Description.ext/disableChannels[])
- 4 = Vehicle
- 5 = Direct
- 6-15 = Custom Radio
- Groups:
- Uncategorised
Syntax
- Syntax:
- channel enableChannel enable
- Parameters:
- channel: Number
- enable: Boolean - true to enable, false to disable (both VoN and chat)
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- channel enableChannel [chat, VoN] Template:since
- 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