compatibleMagazines: Difference between revisions
(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...") |
Lou Montana (talk | contribs) m (Text replacement - "\|branch= *dev " to "") |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
|version1= 2.10 | |version1= 2.10 | ||
|descr= Returns all magazines that can be loaded in the given weapon. | |descr= Returns all magazines that can be loaded in the given weapon. | ||
| Line 26: | Line 23: | ||
|r2= [[Array]] of [[String]]s - All magazines that can be loaded in the given muzzle of the given weapon. | |r2= [[Array]] of [[String]]s - All magazines that can be loaded in the given muzzle of the given weapon. | ||
|x1= <sqf> | |x1= <sqf>compatibleMagazines "arifle_Katiba_GL_F";</sqf> | ||
compatibleMagazines "arifle_Katiba_GL_F" | |||
</sqf> | |||
|x2= <sqf> | |x2= <sqf>compatibleMagazines ["arifle_Katiba_GL_F", "this"];</sqf> | ||
compatibleMagazines ["arifle_Katiba_GL_F", "this"] | |||
</sqf> | |||
|x3= <sqf> | |x3= <sqf>compatibleMagazines ["arifle_Katiba_GL_F", "EGLM"];</sqf> | ||
compatibleMagazines ["arifle_Katiba_GL_F", "EGLM"] | |||
</sqf> | |||
|seealso= [[compatibleItems]] [[BIS_fnc_compatibleMagazines]] | |seealso= [[compatibleItems]] [[BIS_fnc_compatibleMagazines]] [[canAdd]] | ||
}} | }} | ||
Revision as of 13:23, 23 August 2022
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.
Only post proven facts here! Add Note