Killzone_Kid
Make sure you add all units you intend to speak or receive messages on created custom channel to the channel.
Results appear below as you type; use the arrow keys to move through them.
Command · also in Custom Radio and Chat · Markdown · JSON · original wiki page
Create a custom radio channel with the given color, label, call sign and registered characters. The custom channel ID returned can be used to manipulate the created channel later. There are 50 slots (10 slots before Arma 3 v2.22) for custom radio channels which would correspond to channels 6..15 and 26..65 (see getPlayerChannel). The command will find an unused index in this range and create it when found.
radioChannelCreate [color, label, callSign, units, sentenceType]
Parameters:
color: Array - RGBA color values
label: String - label
callSign: String or Arma 3 v2.22 Array of Strings - see radioChannelSetCallSign
Returns: Number - created custom channel ID (used in customChat command), 0 if failed. (see BIS_fnc_channelNumToRadioChannelID, BIS_fnc_radioChannelIDToChannelNum)
_channelID = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player1, player2]];
_channelID = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player1, player2], true];
// using true also disables automatic quotes for chat in channel (Arma 3)
Create custom channel and add all players to it, present and JIP:
if (isServer) then
{
private _channelName = "Q-dance Radio";
private _channelID = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], _channelName, "%UNIT_NAME", []];
if (_channelID == 0) exitWith {diag_log format ["Custom channel '%1' creation failed!", _channelName]};
[_channelID, {_this radioChannelAdd [player]}] remoteExec ["call", [0, -2] select isDedicated, _channelName];
};
radioChannelAdd · radioChannelRemove · radioChannelSetCallSign · radioChannelSetLabel · customChat · customRadio · setCurrentChannel · currentChannel · enableChannel · channelEnabled · getPlayerChannel · radioChannelInfo
Make sure you add all units you intend to speak or receive messages on created custom channel to the channel.
Units are removed from the chat channel on RESPAWN. Be sure to add units back to their custom chat channels upon respawn via onPlayerRespawn.sqf or Respawn Event Handler.