compatibleMagazines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{RV|type=command |game1= arma3 |version1= 2.10 |arg= global |branch= dev |descr= Returns all magazines that can be loaded in the given weapon. |gr1= Weapons |s1= comp...")
 
mNo edit summary
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.10
|version1= 2.10
|arg= global


|branch= dev
|branch= dev

Revision as of 22:04, 30 April 2022

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.10.

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

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