BIS fnc compatibleMagazines: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">") |
Lou Montana (talk | contribs) m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "") |
||
Line 25: | Line 25: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | <dt></dt> | ||
Line 39: | Line 38: | ||
</dd> | </dd> | ||
</dl> | </dl> | ||
Revision as of 00:51, 6 April 2021
Description
- Description:
- Get all compatible magazines for selected weapons. Function looks both for magazines listed in "magazines" array & compatibile magazineWells.
- Execution:
- call
- Groups:
- Weapons
Syntax
- Syntax:
- [weapon, returnHidden] call BIS_fnc_compatibleMagazines
- Parameters:
- weapon: String - Classname of the weapon
- returnHidden: Boolean - (Optional, default false) true to also return magazines with scope 1
- Return Value:
- Array - Array of magazine classes
Examples
- Example 1:
["arifle_mx_f"] call BIS_fnc_compatibleMagazines;
Additional Information
- See also:
- currentMagazine currentWeapon
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 works
toLowerANSI currentMagazine player in (currentWeapon player call BIS_fnc_compatibleMagazines) // works