magazinesAmmoCargo: Difference between revisions

From Bohemia Interactive Community
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> " to "")
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|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.22|Game version=
|1.22


|gr1= Vehicle Inventory |GROUP1=
|gr1= Vehicle Inventory


|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.


| '''magazinesAmmoCargo''' vehicle |SYNTAX=
| '''magazinesAmmoCargo''' vehicle


|p1= vehicle: [[Object]] |PARAMETER1=
|p1= vehicle: [[Object]]


| [[Array]] |RETURNVALUE=
| [[Array]]
   
   
|x1= <code>[[magazinesAmmoCargo]] [[vehicle]] [[player]];</code> |EXAMPLE1=
|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> |EXAMPLE2=
]</code>


| [[magazinesAmmo]], [[magazinesAmmoFull]] |SEEALSO=
| [[magazinesAmmo]], [[magazinesAmmoFull]]


}}
}}

Revision as of 01:01, 18 January 2021

Hover & click on the images for description

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

Syntax:
magazinesAmmoCargo vehicle
Parameters:
vehicle: Object
Return Value:
Array

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

Bottom Section