radioChannelInfo: Difference between revisions

From Bohemia Interactive Community
m (Some wiki formatting)
No edit summary
Line 8: Line 8:
|gr2= Custom Radio and Chat
|gr2= Custom Radio and Chat


|descr= Obtains custom radio channel's details, set by [[radioChannelCreate]].
|descr= Obtains custom radio channel's details, set by [[radioChannelCreate]]. if 'customChannelID' is invalid, the return is either the first custom radio channel (customChannelID < firstCCChannel) or the last (customChannelID > lastCCChannel).


|s1= [[radioChannelInfo]] customChannelID
|s1= [[radioChannelInfo]] customChannelID

Revision as of 00:09, 16 November 2025

Hover & click on the images for description

Description

Description:
Obtains custom radio channel's details, set by radioChannelCreate. if 'customChannelID' is invalid, the return is either the first custom radio channel (customChannelID < firstCCChannel) or the last (customChannelID > lastCCChannel).
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