getWeaponCargo container

Operand types

container: Object

Type of returned value

Description

Returns the weapon types and amounts in a given ammobox or a vehicle capable of storing weapons.

The returned array is in a form of [[weapon type/types],[weapon count/counts]]

For example:
[["M4A1_Aim","M4A1","M4A1_RCO_GL","M16A2","M16A2GL","m16a4","m16a4_acg",
"M16A4_GL","M16A4_ACG_GL","MP5A5","Colt1911","M9"],[4,10,2,4,2,10,5,5,5,4,4,4]]

Used In

Arma2OA

Example

_ammoboxweps = getWeaponCargo ammobox1
Search OFPEC COMREF

Advertisement