武装突袭 Wiki
Advertisement
Introduced with Arma 3 version 1.42
  Effects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

点击图片可看到更多讯息

开始使用于

游戏:
Arma 3
版本:
1.42

描述

描述:
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 channels (except Group) in description.ext, is because no one can talk or text, therefore no transmission is happening. NOTE: Group channel cannot be disabled, neither with enableChannel, nor with description.ext param. Channel / Number correspondence:
  • 0 = Global
  • 1 = Side
  • 2 = Command
  • 3 = Group
  • 4 = Vehicle
  • 5 = Direct
  • 6-15 = Custom Radio (Is not supported by enableChannel)

基本句法

句法:
channel enableChannel enable
参数:
channel: Number
enable: Boolean
返回值:
Nothing

范例

范例1:
0 enableChannel false; // Disable user ability to send voice and text on global channel

额外资讯

多人游戏:
-
也可以看看:
currentChannelsetCurrentChannelgetPlayerChannelchannelEnabledradioChannelCreate

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Bottom Section

Advertisement