BIS fnc channelNumToRadioChannelID: Difference between revisions

From Bohemia Interactive Community
No edit summary
(Fix category)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
|version1= 2.22
|version1= 2.22


|gr1= Radio and Chat
|gr1= Radio


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


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


|r1= [[Number]] - radio channel id (1...50)
|r1= [[Number]] - radio channel id (1..50)


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


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

Latest revision as of 23:06, 21 November 2025

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
26 call BIS_fnc_channelNumToRadioChannelID; // 11

Additional Information

See also:
BIS_fnc_radioChannelIDToChannelNum 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