radioChannelCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(return id)
Line 25: Line 25:
|p4= units: [[Array]] - list of units in the channel |= Parameter 4
|p4= units: [[Array]] - list of units in the channel |= Parameter 4


| [[Number]] |= Return value
| [[Number]] - created channel id (used in [[customChat]] command) |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:24, 21 January 2016


Hover & click on the images for description

Description

Description:
Create a custom radio channel with the given color, label, call sign and registered characters. The index returned can be used to manipulate the created channel later. There are 10 slots for custom radio channels. The command will find an unused index in this range and create it when found.
Multiplayer:
Execute on the server
Groups:
Uncategorised

Syntax

Syntax:
radioChannelCreate [color, label, callSign, units]
Parameters:
color: Array - RGBA color values
label: String - label
callSign: String - call sign
units: Array - list of units in the channel
Return Value:
Number - created channel id (used in customChat command)

Alternative Syntax

Syntax:
radioChannelCreate [color, label, callSign, characters, sentenceType]
Parameters:
color: Array - RGBA color values
label: String - label
callSign: String - call sign
characters: Array - list of units in the channel
sentenceType: Boolean - enable putting all chat messages in quotations (default: true)
Return Value:
Number - created channel id (used in customChat command)

Examples

Example 1:
_index = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player]];
Example 2:
_index = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player], false]; // disable automatic quotes for chat in channel (ArmA 3)

Additional Information

See also:
radioChannelAddradioChannelRemoveradioChannelSetCallSignradioChannelSetLabelcustomChatcustomRadio

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

Notes

Bottom Section