compatibleMagazines: Difference between revisions
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
| Line 5: | Line 5: | ||
|descr= Returns all magazines that can be loaded in the given weapon. | |descr= Returns all magazines that can be loaded in the given weapon. since {{GVI|arma3|2.22}} main syntax also accepts ammo class. No compatible magazines are returned for submunition or missiles. | ||
|gr1= Weapons | |gr1= Weapons | ||
|s1= [[compatibleMagazines]] | |s1= [[compatibleMagazines]] weaponOrAmmo | ||
|p1= | |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. | ||
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.
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