radioChannelInfo: Difference between revisions

From Bohemia Interactive Community
Categories:
No edit summary
No edit summary
Line 15: Line 15:


|r1= [[Array]] in format [colour, label, callSign, units, sentenceType, inUse] (see [[radioChannelCreate]])
|r1= [[Array]] in format [colour, label, callSign, units, sentenceType, inUse] (see [[radioChannelCreate]])
|s2= [[radioChannelInfo]] option
|s2since= arma3 2.22
|p21= option: [[Boolean]] - [[true]] to return only channels in use, [[false]] to return all available channels
|r2= [[Array]] of [[Array]]s in format [[colour, label, callSign, units, sentenceType, inUse],....] (see [[radioChannelCreate]])


|x1= <sqf>
|x1= <sqf>

Revision as of 16:27, 20 November 2025

{{RV|type=command

|game1= arma3 |version1= 2.00

|gr1= Radio and Chat

|gr2= Custom Radio and Chat

|descr= Obtains custom radio channel's details. if 'customChannelID' is invalid, the return is either the first custom radio channel (customChannelID < firstCCChannel) or the last (customChannelID > lastCCChannel). 'inUse' true indicates if the channel was made available using radioChannelCreate, false means it can be created.

|s1= radioChannelInfo customChannelID

|p1= customChannelID: Number - custom channel ID returned by radioChannelCreate

|r1= Array in format [colour, label, callSign, units, sentenceType, inUse] (see radioChannelCreate)

|s2= radioChannelInfo option |s2since= arma3 2.22 |p21= option: Boolean - true to return only channels in use, false to return all available channels

|r2= Array of Arrays in format [[colour, label, callSign, units, sentenceType, inUse],....] (see radioChannelCreate)

|x1=

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]

|seealso= radioChannelCreate getPlayerChannel }}