BIS_fnc_compatibleMagazines
Jump to navigation
Jump to search
Description
- Description:
/* bis_fnc_compatibleMagazines Get all compatibile magazines for selected weapons. Function looks both for magazines listed in "magazines" array & compatibile magazineWells Input: 0: (String) : Weapon class name 1: (Bool) [Optional] : Decide if magazines with scope 1 should be also returned Output: Array of magazines (strings) Example: ["arifle_mx_f"] call bis_fnc_compatibleMagazines; compatibleMagazines Author: reyhard */
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [] call BIS_fnc_compatibleMagazines
- Parameters:
- parameter: Datatype - (Optional, default defValue) description
- Return Value:
- Datatype - description
Examples
- Example 1:
Additional Information
- See also:
- See also needed
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
- Posted on September 1, 2020 - 18:59 (UTC)
- pierremgi
-
This function returns all magazines in lower case.
example:
currentMagazine player // "30Rnd_762x39_AK12_Mag_F"
currentWeapon player call BIS_fnc_compatibleMagazines // ["30rnd_762x39_ak12_mag_f",....]
currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines) // never work
toLowerANSI currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines // work