compatibleMagazines

From Bohemia Interactive Community
Revision as of 16:35, 8 November 2023 by Lou Montana (talk | contribs) (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *W([a-z ])" to "$1 - w$2")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns all magazines that can be loaded in the given weapon.
Groups:
Weapons

Syntax

Syntax:
compatibleMagazines weapon
Parameters:
weapon: String - weapon 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
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

See also:
compatibleItems BIS_fnc_compatibleMagazines canAdd

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