radioChannelInfo: Difference between revisions
Jump to navigation
Jump to search
m (Linked to Channel IDs) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 8: | Line 8: | ||
|gr2= Custom Radio and Chat |GROUP2= | |gr2= Custom Radio and Chat |GROUP2= | ||
|descr= Obtains custom radio channel's details, set by [[radioChannelCreate]]. |Description= | |descr= Obtains custom radio channel's details, set by [[radioChannelCreate]]. |Description= | ||
Line 15: | Line 14: | ||
|pr= |Problems= | |pr= |Problems= | ||
|s1= [[radioChannelInfo]] customChannelID|Syntax= | |s1= [[radioChannelInfo]] customChannelID|Syntax= | ||
Line 22: | Line 20: | ||
|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= | ||
|seealso= [[radioChannelCreate]] [[getPlayerChannel]] |See Also= | |seealso= [[radioChannelCreate]] [[getPlayerChannel]] |See Also= |
Revision as of 02:15, 17 January 2021
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 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