radioChannelCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
(A3 alternate syntax, global args/effects)
Line 9: Line 9:
|1.00|= Game version
|1.00|= Game version
|exec= server|= Exec
|exec= server|= Exec
|arg= global|= Arguments in MP
|eff= global|= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 16: Line 18:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''radioChannelCreate''' [color, label, callSign, characters]|= Syntax
| '''radioChannelCreate''' [color, label, callSign, units]|= Syntax


|p1= color: [[Array]] - RGBA color values |= Parameter 1
|p1= color: [[Array]] - RGBA color values |= Parameter 1
|p2= label: [[String]] - label |= Parameter 2
|p2= label: [[String]] - label |= Parameter 2
|p3= callSign: [[String]] - call sign |= Parameter 3
|p3= callSign: [[String]] - call sign |= Parameter 3
|p4= characters: [[Array]] - list of registered characters |= Parameter 4
|p4= units: [[Array]] - list of units in the channel |= Parameter 4


| [[Number]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_index = [[radioChannelCreate]] [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player]];</code> |=
| s2= '''radioChannelCreate''' [color, label, callSign, characters, sentenceType] |= Syntax
|p21= color: [[Array]] - RGBA color values |= Parameter 1
|p22= label: [[String]] - label |= Parameter 2
|p23= callSign: [[String]] - call sign |= Parameter 3
|p24= characters: [[Array]] - list of units in the channel |= Parameter 4
|p25= sentenceType: [[Boolean]] - enable putting all chat messages in quotations (default: true) |= Parameter 5
| r2= [[Number]] |= Return value
 
|x1= <code>_index = '''radioChannelCreate''' [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player]];</code> |=


|mp= Execute on the server |=
|mp= Execute on the server |=

Revision as of 05:05, 11 July 2015


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

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

Examples

Example 1:
_index = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player]];

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