enableChannel: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (format) |
Killzone Kid (talk | contribs) (description see also) |
||
Line 5: | Line 5: | ||
|1.42|= Game version | |1.42|= Game version | ||
|eff= local |= Effects in MP | |||
__________________________________________________________________________________________ | __________________________________________________________________________________________ | ||
| Enables/disables given chat channel. Channel / Number correspondence: | | 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. | |||
So in short, just like with [[getPlayerChannel]], this command provides a nice ability to hack into chat UI with some limitations. And the reason why it is possible to disable entire channel in [[description.ext]], is because no one can talk or text, therefore no transmission is happening. Channel / Number correspondence: | |||
* 0 - Global | * 0 - Global | ||
* 1 - Side | * 1 - Side | ||
Line 14: | Line 22: | ||
* 4 - Vehicle | * 4 - Vehicle | ||
* 5 - Direct | * 5 - Direct | ||
* 6-15 - Custom Radio (Is not supported by [[enableChannel]]) | |||
|= Description | |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| channel '''enableChannel''' | | channel '''enableChannel''' enable|= Syntax | ||
|p1= channel: [[Number]] |= Parameter 1 | |p1= channel: [[Number]] |= Parameter 1 | ||
|p2= | |p2= enable: [[Boolean]] |= Parameter 2 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>0 [[enableChannel]] false; // Disable global channel</code> |= Example 1 | |x1= <code>0 [[enableChannel]] false; // Disable user ability to send voice and text on global channel</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[currentChannel]], [[setCurrentChannel]], [[ | |[[currentChannel]], [[setCurrentChannel]], [[enableChannel]], [[channelEnabled]], [[radioChannelCreate]]|= See also | ||
}} | }} |
Revision as of 01:10, 3 February 2016
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
- Return Value:
- Nothing
Examples
- Example 1:
0 enableChannel false; // Disable user ability to send voice and text 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