magazinesAmmoCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(example/see also)
m (template:command argument fix)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


| [[Array]] |= Return value
| [[Array]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[magazinesAmmoCargo]] [[vehicle]] [[player]];</code> |= Example 1
|x1= <code>[[magazinesAmmoCargo]] [[vehicle]] [[player]];</code> |EXAMPLE1=
|x2= <code>[[magazinesAmmoCargo]] [[uniformContainer]] [[player]];</code>
|x2= <code>[[magazinesAmmoCargo]] [[uniformContainer]] [[player]];</code>
<code>[
<code>[
Line 24: Line 24:
["30Rnd_65x39_caseless_mag",30],
["30Rnd_65x39_caseless_mag",30],
["Chemlight_green",1]
["Chemlight_green",1]
]</code> |= Example 2
]</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}

Revision as of 15:43, 7 April 2019

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:
Uncategorised

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