compatibleMagazines: Difference between revisions
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
| Line 13: | Line 13: | ||
|p1= weaponOrAmmo: [[String]] - weapon class name or since {{GVI|arma3|2.22}} ammo class name | |p1= weaponOrAmmo: [[String]] - weapon class name or since {{GVI|arma3|2.22}} ammo class name | ||
|r1= [[Array]] of [[String]]s - all magazines that can be loaded in '''any muzzle''' of the given weapon. | |r1= [[Array]] of [[String]]s - all magazines that can be loaded in '''any muzzle''' of the given weapon or magazines containing given ammo. | ||
|s2= [[compatibleMagazines]] [weapon, muzzle] | |s2= [[compatibleMagazines]] [weapon, muzzle] | ||
Revision as of 19:32, 19 December 2025
Description
- Description:
- Returns all magazines that can be loaded in the given weapon. Since
2.22 main syntax also accepts ammo class. No compatible magazines are returned for submunition or missiles. - Groups:
- Weapons
Syntax
- Syntax:
- compatibleMagazines weaponOrAmmo
- Parameters:
- weaponOrAmmo: String - weapon class name or since
2.22 ammo class name - Return Value:
- Array of Strings - all magazines that can be loaded in any muzzle of the given weapon or magazines containing given ammo.
Alternative Syntax
- Syntax:
- compatibleMagazines [weapon, muzzle]
- Parameters:
- weapon: String - weapon class name
- muzzle: String - muzzle name ("this" is supported for primary muzzle)
- Return Value:
- Array of Strings - all magazines that can be loaded in the given muzzle of the given weapon.
Examples
- Example 1:
- compatibleMagazines "arifle_Katiba_GL_F";
- Example 2:
- compatibleMagazines ["arifle_Katiba_GL_F", "this"];
- Example 3:
- compatibleMagazines ["arifle_Katiba_GL_F", "EGLM"];
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note