setCurrentChannel

From Bohemia Interactive Community
Jump to navigation Jump to search
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

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.42

Description

Description:
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)

Syntax

Syntax:
setCurrentChannel channel
Parameters:
channel: Number
Return Value:
Boolean

Examples

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

Additional Information

Multiplayer:
-
See also:
getPlayerChannelcurrentChannelenableChannelchannelEnabledradioChannelCreate

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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);