BIS fnc compatibleMagazines: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 52: | Line 52: | ||
<dd class="note"> | <dd class="note"> | ||
This function returns all magazines in lower case.<br> | This function returns all magazines in lower case.<br> | ||
example:<br> | example:<br> | ||
[[currentMagazine]] player // "30Rnd_762x39_AK12_Mag_F"<br> | [[currentMagazine]] player // "30Rnd_762x39_AK12_Mag_F"<br> | ||
[[currentWeapon]] player call BIS_fnc_compatibleMagazines // ["30rnd_762x39_ak12_mag_f",....]<br> | [[currentWeapon]] player call BIS_fnc_compatibleMagazines // ["30rnd_762x39_ak12_mag_f",....]<br> | ||
<code>currentMagazine player [[in]] (currentWeapon player call BIS_fnc_compatibleMagazines) // never work<br> | |||
[[toLowerANSI]] currentMagazine player [[in]] (currentWeapon player call BIS_fnc_compatibleMagazines // work</code> | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> |
Revision as of 20:03, 1 September 2020
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