magazinesAmmoCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
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

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

Notes

Bottom Section