getMagazineCargo container

Operand types

container: Object

Type of returned value

Description

Returns the magazine types and amounts in a given ammobox or a vehicle capable of storing magazines.

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

For example:
[["30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","20Rnd_556x45_Stanag",
"100Rnd_762x51_M240","200Rnd_556x45_M249",
"30Rnd_9x19_MP5SD","30Rnd_9x19_MP5","M136",
"1Rnd_HE_M203","FlareWhite_M203","FlareGreen_M203","FlareRed_M203","FlareYellow_M203",
"5Rnd_762x51_M24","20Rnd_762x51_DMR",
"8Rnd_B_Beneli_74Slug","10Rnd_127x99_m107",
"15Rnd_9x19_M9","15Rnd_9x19_M9SD","7Rnd_45ACP_1911","HandGrenade_West","SmokeShellRed",
"SmokeShellGreen","SmokeShellYellow","SmokeShell","1Rnd_SmokeRed_M203","1Rnd_SmokeGreen_M203",
"1Rnd_SmokeYellow_M203","1Rnd_Smoke_M203"],[400,20,20,50,50,30,90,20,80,2,2,2,2,30,30,50,30,
30,20,30,50,2,2,2,5,2,2,2,2]]

Used In

Arma2OA

Example

_ammoboxmags = getMagazineCargo ammobox1
Search OFPEC COMREF