radioChannelCreate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(fixed note)
Line 45: Line 45:
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on July 10, 2015
<dt class="note">'''[[User:Waffle SS.|Waffle SS.]]'''
<dd class="note">Alternate syntax example:
<code>_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)</code>
<BR><BR>


<!-- Note Section END -->
<!-- Note Section END -->
Line 55: Line 62:
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
{{subst:Add new note/construct|
Alternate syntax example:
<code>_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)</code>
}}

Revision as of 05:09, 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

Posted on July 10, 2015
Waffle SS.
Alternate syntax example: _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)

Bottom Section