magazinesAmmoCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.22 | |1.22 | ||
|gr1= Vehicle Inventory | |gr1= Vehicle Inventory | ||
|Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines. | |Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines. | ||
| '''magazinesAmmoCargo''' vehicle | | '''magazinesAmmoCargo''' vehicle | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
| [[Array]] | | [[Array]] | ||
|x1= <code>[[magazinesAmmoCargo]] [[vehicle]] [[player]];</code> | |x1= <code>[[magazinesAmmoCargo]] [[vehicle]] [[player]];</code> | ||
|x2= <code>[[magazinesAmmoCargo]] [[uniformContainer]] [[player]];</code> | |x2= <code>[[magazinesAmmoCargo]] [[uniformContainer]] [[player]];</code> | ||
<code>[ | <code>[ | ||
Line 21: | Line 21: | ||
["30Rnd_65x39_caseless_mag",30], | ["30Rnd_65x39_caseless_mag",30], | ||
["Chemlight_green",1] | ["Chemlight_green",1] | ||
]</code> | ]</code> | ||
| [[magazinesAmmo]], [[magazinesAmmoFull]] | | [[magazinesAmmo]], [[magazinesAmmoFull]] | ||
}} | }} |
Revision as of 01:01, 18 January 2021
Description
- Description:
- Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines.
- Groups:
- Vehicle Inventory
Syntax
Examples
- Example 1:
magazinesAmmoCargo vehicle player;
- Example 2:
magazinesAmmoCargo uniformContainer player;
[ ["30Rnd_65x39_caseless_mag",30], ["30Rnd_65x39_caseless_mag",30], ["Chemlight_green",1] ]
Additional Information
- See also:
- magazinesAmmomagazinesAmmoFull
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