Difference between revisions of "radioChannelInfo"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (command group)
m (channelID)
Line 4: Line 4:
  
 
|version= 2.00 |Game version=
 
|version= 2.00 |Game version=
 +
 +
|gr1= Radio and Chat |GROUP1=
  
 
|gr2= Custom Radio |GROUP2=
 
|gr2= Custom Radio |GROUP2=
Line 13: Line 15:
  
 
|pr= |Problems=
 
|pr= |Problems=
 
|gr1= Radio and Chat |GROUP1=
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
|s1= [[radioChannelInfo]] channelId |Syntax=
+
|s1= [[radioChannelInfo]] channelID |Syntax=
  
|p1= channelId: [[Number]] - radio channel id
+
|p1= channelID: [[Number]] - radio channel ID
  
 
|r1= [[Array]] to format  [colour, label, callSign, units, sentenceType, exists] (see [[radioChannelCreate]]) |Return Value=
 
|r1= [[Array]] to format  [colour, label, callSign, units, sentenceType, exists] (see [[radioChannelCreate]]) |Return Value=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
|x1= <code>[[private]] _channelId = [[radioChannelCreate]] [<nowiki/>[1, 0, 0.5, 0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]]];
+
|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=
+
[[radioChannelInfo]] _channelID; {{cc|returns [<nowiki/>[1,0,0.5,0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]], [[true]]]}}</code> |Example 1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  

Revision as of 17:55, 24 October 2020

Hover & click on the images for description

Description

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

Syntax

Syntax:
radioChannelInfo channelID
Parameters:
channelID: Number - radio channel ID
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

Bottom Section