radioChannelInfo: Difference between revisions
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
| Line 14: | Line 14: | ||
|p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]] | |p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]] | ||
|r1= [[Array]] in format [colour, label, callSign, units, sentenceType, inUse] (see [[radioChannelCreate]]) | |r1= [[Array]] in format [colour, label, callSign, units, sentenceType, inUse, {{GVI|arma3|2.22|size= 0.75}} callSignVoN] (see [[radioChannelCreate]]) | ||
|s2= [[radioChannelInfo]] option | |s2= [[radioChannelInfo]] option | ||
| Line 20: | Line 20: | ||
|p21= option: [[Boolean]] - [[true]] to return only channels in use, [[false]] to return all available channels | |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]]) | |r2= [[Array]] of [[Array]]s in format [ [colour, label, callSign, units, sentenceType, inUse, callSignVoN],....] (see [[radioChannelCreate]]) | ||
|x1= <sqf> | |x1= <sqf> | ||
Latest revision as of 12:41, 23 November 2025
Description
- Description:
- 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.
- 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, inUse,
2.22 callSignVoN] (see radioChannelCreate)
Alternative Syntax
- Syntax:
- radioChannelInfo option
- Parameters:
- option: Boolean - true to return only channels in use, false to return all available channels
- Return Value:
- Array of Arrays in format [ [colour, label, callSign, units, sentenceType, inUse, callSignVoN],....] (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