BIS fnc radioChannelIDToChannelNum: Difference between revisions

From Bohemia Interactive Community
(Created page with "{{RV|type=function |game1= arma3 |version1= 2.22 |gr1= Mission Parameters |descr=Returns the value of mission param given by the class name. This function is global and will return selected param value on any PC including JIP. For backward compatibility it also supports "param1" and "param2". |s1= radioChannelID call BIS_fnc_radioChannelIDToChannelNum |p1= radioChannelID: Number - id returned by radioChannelCreate (1...50) |r1= Number - channel numb...")
 
(Fix category)
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
|version1= 2.22
|version1= 2.22


|gr1= Mission Parameters
|gr1= Radio


|descr=Returns the value of mission param given by the class name. This function is global and will return selected param value on any PC including JIP. For backward compatibility it also supports "param1" and "param2".
|descr=Converts radio channel id, used in [[radioChannelAdd]], [[radioChannelSetLabel]], etc to chat channel number, used in [[currentChannel]], [[enableChannel]], etc.


|s1= radioChannelID call [[BIS_fnc_radioChannelIDToChannelNum]]
|s1= radioChannelID call [[BIS_fnc_radioChannelIDToChannelNum]]


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


|r1= [[Number]] - channel number used in commands like [[currentChannel]], etc (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