Arma 3 Scripting

Command in Vehicle Inventory, Containers

getWeaponCargo

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns all weapons types and count from the cargo space

Syntax

getWeaponCargo object

Parameters:

Returns: Array - format [all_types_array, all_counts_array]. Eg: [["a", "b"], [3, 2]]

Examples

Example 1

_content = getWeaponCargo carName;

Example 2

_content = getWeaponCargo ammoBoxName;

See also

weaponCargo · addWeaponCargo · addWeaponCargoGlobal · clearWeaponCargo · clearWeaponCargoGlobal