BIS fnc radioChannelIDToChannelNum: Difference between revisions

From Bohemia Interactive Community
No edit summary
(Fix category)
 
Line 4: Line 4:
|version1= 2.22
|version1= 2.22


|gr1= Radio and Chat
|gr1= Radio
 
|gr2= Custom Radio and Chat


|descr=Converts radio channel id, used in [[radioChannelAdd]], [[radioChannelSetLabel]], etc to chat channel number, used in [[currentChannel]], [[enableChannel]], etc.
|descr=Converts radio channel id, used in [[radioChannelAdd]], [[radioChannelSetLabel]], etc to chat channel number, used in [[currentChannel]], [[enableChannel]], etc.
Line 12: Line 10:
|s1= radioChannelID call [[BIS_fnc_radioChannelIDToChannelNum]]
|s1= radioChannelID call [[BIS_fnc_radioChannelIDToChannelNum]]


|p1= radioChannelID: [[Number]] - radio channel id (1...50)
|p1= radioChannelID: [[Number]] - radio channel id (1..50)


|r1= [[Number]] - channel number (6...15, 26...65)
|r1= [[Number]] - channel number (6..15, 26..65)


|x1= <sqf>11 call BIS_fnc_radioChannelIDToChannelNum; //26</sqf>
|x1= <sqf>11 call BIS_fnc_radioChannelIDToChannelNum; //26</sqf>


|seealso= [[BIS_fnc_channelNumToRadioChannelID]] [[radioChannelCreate]] [[currentChannel]]
|seealso= [[BIS_fnc_channelNumToRadioChannelID]] [[radioChannelCreate]] [[currentChannel]]
}}
}}

Latest revision as of 23:05, 21 November 2025

Hover & click on the images for description

Description

Description:
Converts radio channel id, used in radioChannelAdd, radioChannelSetLabel, etc to chat channel number, used in currentChannel, enableChannel, etc.
Execution:
call
Groups:
Radio

Syntax

Syntax:
radioChannelID call BIS_fnc_radioChannelIDToChannelNum
Parameters:
radioChannelID: Number - radio channel id (1..50)
Return Value:
Number - channel number (6..15, 26..65)

Examples

Example 1:
11 call BIS_fnc_radioChannelIDToChannelNum; //26

Additional Information

See also:
BIS_fnc_channelNumToRadioChannelID radioChannelCreate currentChannel

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