getItemCargo

From Bohemia Interactive Community
Hover & click on the images for description

Description

Description:
Returns all items names and count from ammo box (or any general weapon holder container).
Groups:
Vehicle Inventory

Syntax

Syntax:
getItemCargo box
Parameters:
box: Object
Return Value:
Array with [classes, counts]

Examples

Example 1:
getItemCargo cursorTarget; /* returns e.g [ ["5ItemA", "10ItemB"] [5, 10] ] */

Additional Information

See also:
itemCargo addItemCargo addItemCargoGlobal clearItemCargo clearItemCargoGlobal

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note