magazinesAmmoCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Vehicle Inventory |GROUP1= | |gr1= Vehicle Inventory |GROUP1= | ||
|Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines. |DESCRIPTION= | |Returns an array of subarrays with the type names and ammo left of all the vehicle's cargo or container magazines. |DESCRIPTION= | ||
| '''magazinesAmmoCargo''' vehicle |SYNTAX= | | '''magazinesAmmoCargo''' vehicle |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Array]] |RETURNVALUE= | | [[Array]] |RETURNVALUE= | ||
|x1= <code>[[magazinesAmmoCargo]] [[vehicle]] [[player]];</code> |EXAMPLE1= | |x1= <code>[[magazinesAmmoCargo]] [[vehicle]] [[player]];</code> |EXAMPLE1= | ||
Line 26: | Line 22: | ||
["Chemlight_green",1] | ["Chemlight_green",1] | ||
]</code> |EXAMPLE2= | ]</code> |EXAMPLE2= | ||
| [[magazinesAmmo]], [[magazinesAmmoFull]] |SEEALSO= | | [[magazinesAmmo]], [[magazinesAmmoFull]] |SEEALSO= |
Revision as of 01:58, 17 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