武装突袭 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

描述

描述:
Sets given channel as current chat channel. Scripted way of selecting desired channel on the UI. The given channel may be disabled (see enableChannel), this is why this command returns boolean, true on success or false on failure. Correspondence between channel and number:
  • 0 = Global
  • 1 = Side
  • 2 = Command
  • 3 = Group
  • 4 = Vehicle
  • 5 = Direct
  • 6-15 = Custom Radio (see radioChannelCreate)

基本句法

句法:
setCurrentChannel channel
參數:
channel: Number
返回值:
Boolean

範例

範例1:
_isDirectSelected = setCurrentChannel 5; // sets Direct channel as current active

額外資訊

多人遊戲:
-
也可以看看:
getPlayerChannelcurrentChannelenableChannelchannelEnabledradioChannelCreate

注意事項

此處撰寫句法皆為可行用法. 可到官網[1]專頁回報錯誤. 你可以使用討論頁面或是論壇來進行討論.
新增注意事項 | 如何新增?

Notes

Bottom Section

Posted on December 9, 2015 - 16:45 (UTC)
Commy2
This command can be used together with custom radio channels, but an offset of 5 must be added to the index from radioChannelCreate. _index = radioChannelCreate [[1, 0, 0, 1], "Custom Channel 1", "%UNIT_NAME", [player]]; setCurrentChannel (_index + 5);
Advertisement