secondaryWeaponMagazine: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|0.70 | |0.70 | ||
|gr1= Unit Inventory | |gr1= Unit Inventory | ||
| Collects all loaded [[magazines]] from all [[secondaryWeapon]] muzzles and returns them in [[Array]], otherwise it returns []. This command is used for infantry weapons only. | | Collects all loaded [[magazines]] from all [[secondaryWeapon]] muzzles and returns them in [[Array]], otherwise it returns []. This command is used for infantry weapons only. | ||
| '''secondaryWeaponMagazine''' unit | | '''secondaryWeaponMagazine''' unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Array]] | | [[Array]] | ||
|x1= <code>[[hint]] [[str]] [[secondaryWeaponMagazine]] [[player]]; //["NLAW_F"] | |x1= <code>[[hint]] [[str]] [[secondaryWeaponMagazine]] [[player]]; //["NLAW_F"] | ||
</code> | </code> | ||
|x2= <code>_array <nowiki>=</nowiki> [[secondaryWeaponMagazine]] [[player]]; | |x2= <code>_array <nowiki>=</nowiki> [[secondaryWeaponMagazine]] [[player]]; | ||
Line 30: | Line 30: | ||
}; | }; | ||
}; | }; | ||
</code> | </code> | ||
| [[secondaryWeapon]], [[secondaryWeaponItems]], [[addSecondaryWeaponItem]], [[primaryWeaponMagazine]], [[handgunMagazine]], [[binocularMagazine]] | | [[secondaryWeapon]], [[secondaryWeaponItems]], [[addSecondaryWeaponItem]], [[primaryWeaponMagazine]], [[handgunMagazine]], [[binocularMagazine]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:02, 18 January 2021
Description
- Description:
- Collects all loaded magazines from all secondaryWeapon muzzles and returns them in Array, otherwise it returns []. This command is used for infantry weapons only.
- Groups:
- Unit Inventory
Syntax
Examples
- Example 1:
hint str secondaryWeaponMagazine player; //["NLAW_F"]
- Example 2:
_array = secondaryWeaponMagazine player; if (count _array > 0) then { hint ("Secondary weapon is loaded with " + (_array select 0) + "!"); } else { if (secondaryWeapon player != "") then { hint "Secondary weapon is not loaded!"; } else { hint "Player doesn't have a secondary weapon!"; }; };
Additional Information
- See also:
- secondaryWeaponsecondaryWeaponItemsaddSecondaryWeaponItemprimaryWeaponMagazinehandgunMagazinebinocularMagazine
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