radioChannelInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Linked to Channel IDs)
m (Some wiki formatting)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


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


|version= 2.00 |Game version=
|gr1= Radio and Chat


|gr1= Radio and Chat |GROUP1=
|gr2= Custom Radio and Chat


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


|descr= Obtains custom radio channel's details, set by [[radioChannelCreate]]. |Description=
|s1= [[radioChannelInfo]] customChannelID
 
|mp= |Multiplayer Behaviour=
 
|pr= |Problems=
____________________________________________________________________________________________
 
|s1= [[radioChannelInfo]] customChannelID|Syntax=


|p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]]
|p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]]


|r1= [[Array]] to format [colour, label, callSign, units, sentenceType, exists] (see [[radioChannelCreate]]) |Return Value=
|r1= [[Array]] in format [colour, label, callSign, units, sentenceType, exists] (see [[radioChannelCreate]])
____________________________________________________________________________________________


|x1= <code>[[private]] _channelID = [[radioChannelCreate]] [<nowiki/>[1, 0, 0.5, 0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]]];
|x1= <sqf>
[[radioChannelInfo]] _channelID; {{cc|returns [<nowiki/>[1,0,0.5,0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]], [[true]]]}}</code> |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]
</sqf>


|seealso= [[radioChannelCreate]] [[getPlayerChannel]] |See Also=
|seealso= [[radioChannelCreate]] [[getPlayerChannel]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 12:08, 4 May 2022

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 in 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