radioChannelInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "|mp= " to "")
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev |Game name=
|game1= arma3
|version1= 2.00


|version= 1.99 |Game version=
|gr1= Radio and Chat
____________________________________________________________________________________________


|descr= Obtains custom radio channel's details, set by [[radioChannelCreate]]. |Description=
|gr2= Custom Radio and Chat


|mp= |Multiplayer Behaviour=
|descr= Obtains custom radio channel's details, set by [[radioChannelCreate]].


|pr= |Problems=
|s1= [[radioChannelInfo]] customChannelID


|gr1= Radio and Chat |GROUP1=
|p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]]
____________________________________________________________________________________________


|s1= [[radioChannelInfo]] channelId |Syntax=
|r1= [[Array]] to format  [colour, label, callSign, units, sentenceType, exists] (see [[radioChannelCreate]])


|p1= channelId: [[Number]] - radio channel id
|x1= <code>[[private]] _channelID = [[radioChannelCreate]] [<nowiki/>[1, 0, 0.5, 0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]]];
[[radioChannelInfo]] _channelID; {{cc|returns [<nowiki/>[1,0,0.5,0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]], [[true]]]}}</code>


|r1= [[Array]] to format  [colour, label, callSign, units, sentenceType, exists] (see [[radioChannelCreate]]) |Return Value=
|seealso= [[radioChannelCreate]] [[getPlayerChannel]]
____________________________________________________________________________________________
 
|x1= <code>[[private]] _channelId = [[radioChannelCreate]] [<nowiki/>[1, 0, 0.5, 0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]]];
[[radioChannelInfo]] _channelId; {{cc|returns [<nowiki/>[1,0,0.5,0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]], [[true]]]}}</code> |Example 1=
____________________________________________________________________________________________
 
|seealso= [[radioChannelCreate]] [[getPlayerChannel]] |See Also=
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Command Group: Radio Control]]

Revision as of 21:59, 21 May 2021

Hover & click on the images for description

Description

Description:
Obtains custom radio channel's details, set by radioChannelCreate.
Groups:
Radio and ChatCustom Radio and Chat

Syntax

Syntax:
radioChannelInfo customChannelID
Parameters:
customChannelID: Number - custom channel ID returned by radioChannelCreate
Return Value:
Array to format [colour, label, callSign, units, sentenceType, exists] (see radioChannelCreate)

Examples

Example 1:
private _channelID = radioChannelCreate [[1, 0, 0.5, 0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], false]; radioChannelInfo _channelID; // returns [[1,0,0.5,0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], false, true]

Additional Information

See also:
radioChannelCreate getPlayerChannel

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