radioChannelCreate: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "  <dd class="notedate">" to " <dt><dt> <dd class="notedate">")  | 
				Lou Montana (talk | contribs)  m (Text replacement - "</dd> <dt><dt>" to "</dd>  <dt><dt>")  | 
				||
| Line 56: | Line 56: | ||
Make sure you add all units you intend to speak or receive messages on created custom channel to the channel.  | Make sure you add all units you intend to speak or receive messages on created custom channel to the channel.  | ||
</dd>  | </dd>  | ||
<dt><dt>  | <dt><dt>  | ||
<dd class="notedate">Posted on October 12, 2017 - 12:27 (UTC)</dd>  | <dd class="notedate">Posted on October 12, 2017 - 12:27 (UTC)</dd>  | ||
Revision as of 10:01, 11 June 2021
Description
- Description:
 - Description needed
 - Groups:
 - Radio and ChatCustom Radio and Chat
 
Syntax
- Syntax:
 - Syntax needed
 - Parameters:
 - color: Array - RGBA color values
 - label: String - label
 - callSign: String - call sign
 - units: Array - list of units in the channel
 - sentenceType (Optional): Boolean (Default: true) 
- true - use Protocol message color from getArray (configFile >> "RscChatListDefault" >> "colorMessageProtocol")
 - false - use Normal message color from getArray (configFile >> "RscChatListDefault" >> "colorMessage")
 
 - Return Value:
 - Return value needed
 
Examples
- Example 1:
 _channelID= radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player1, player2]];- Example 2:
 _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)- Example 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]; }; 
Additional Information
- See also:
 - radioChannelAddradioChannelRemoveradioChannelSetCallSignradioChannelSetLabelcustomChatcustomRadiosetCurrentChannelcurrentChannelenableChannelchannelEnabledgetPlayerChannel
 
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 
- Posted on January 21, 2016 - 13:30 (UTC)
 - Killzone Kid
 - Make sure you add all units you intend to speak or receive messages on created custom channel to the channel.
 - Posted on October 12, 2017 - 12:27 (UTC)
 - Demellion
 - WARNING: Be aware that created channels order and count are different between server and client. Example 3 shown that server-side channel ID is actually 4, while client currentChannel on the same channel results in 9. Behaviour is yet unknown for me.