compatibleMagazines: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *W([a-z ])" to "$1 - w$2") |
||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
|s1= [[compatibleMagazines]] weapon | |s1= [[compatibleMagazines]] weapon | ||
|p1= weapon: [[String]] - | |p1= weapon: [[String]] - weapon 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. | ||
Line 17: | Line 17: | ||
|s2= [[compatibleMagazines]] [weapon, muzzle] | |s2= [[compatibleMagazines]] [weapon, muzzle] | ||
|p21= weapon: [[String]] - | |p21= weapon: [[String]] - weapon class name | ||
|p22= muzzle: [[String]] - | |p22= muzzle: [[String]] - muzzle name | ||
|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. |
Latest revision as of 16:35, 8 November 2023
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