radioChannelInfo: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Linked to Channel IDs) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|game1= | |game1= arma3 |Game name= | ||
|version= | |version= 2.00 |Game version= | ||
|gr1= Radio and Chat |GROUP1= | |||
|gr2= Custom Radio and Chat |GROUP2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 11: | Line 15: | ||
|pr= |Problems= | |pr= |Problems= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|s1= [[radioChannelInfo]] | |s1= [[radioChannelInfo]] customChannelID|Syntax= | ||
|p1= | |p1= customChannelID: [[Number]] - [[Channel IDs|custom channel ID]] returned by [[radioChannelCreate]] | ||
|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]] | |x1= <code>[[private]] _channelID = [[radioChannelCreate]] [<nowiki/>[1, 0, 0.5, 0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]]]; | ||
[[radioChannelInfo]] | [[radioChannelInfo]] _channelID; {{cc|returns [<nowiki/>[1,0,0.5,0.8], "Q-dance Radio", "%UNIT_NAME", [u1, u2], [[false]], [[true]]]}}</code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 36: | Line 38: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
Revision as of 09:45, 29 October 2020
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