itemCargo box

Operand types

box: Object

Type of returned value

Description

Get array with items from given ammo box (or any general weapon holder container).

Used In

Arma3

Example

hint str(itemCargo (vestContainer player));

if ("acc_flashlight" in (itemCargo ammobox1)) then {
hint "You can pick up a flashlight from this ammo box.";
};
Search OFPEC COMREF