Warning: file_put_contents(/ff_508b98f587b02549a8aef561aa5707383641bbf23c99ff99.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
magazinesAmmoCargo - OFPEC Scripting Command Reference | OFPEC The Editing Center

magazinesAmmoCargo vehicleName

Operand types

vehicleName: Object

Type of returned value

Description

Returns a nested array with the type names and ammo left of all the vehicle's cargo or container magazines.

Used In

Arma3

Example

magazinesAmmoCargo ammotruck1;
// using 'Hunter NATO' returns [["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["30Rnd_65x39_caseless_mag",30],["100Rnd_65x39_caseless_mag",100],["100Rnd_65x39_caseless_mag",100],["100Rnd_65x39_caseless_mag",100],["100Rnd_65x39_caseless_mag",100],["100Rnd_65x39_caseless_mag",100],["100Rnd_65x39_caseless_mag",100],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["HandGrenade",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_HE_Grenade_shell",1],["1Rnd_Smoke_Grenade_shell",1],["1Rnd_Smoke_Grenade_shell",1],["1Rnd_Smoke_Grenade_shell",1],["1Rnd_Smoke_Grenade_shell",1],["1Rnd_SmokeGreen_Grenade_shell",1],["1Rnd_SmokeGreen_Grenade_shell",1],["1Rnd_SmokeGreen_Grenade_shell",1],["1Rnd_SmokeGreen_Grenade_shell",1],["1Rnd_SmokeOrange_Grenade_shell",1],["1Rnd_SmokeOrange_Grenade_shell",1],["1Rnd_SmokeOrange_Grenade_shell",1],["1Rnd_SmokeOrange_Grenade_shell",1],["1Rnd_SmokeBlue_Grenade_shell",1],["1Rnd_SmokeBlue_Grenade_shell",1],["1Rnd_SmokeBlue_Grenade_shell",1],["1Rnd_SmokeBlue_Grenade_shell",1],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["16Rnd_9x21_Mag",16],["SmokeShell",1],["SmokeShell",1],["SmokeShell",1],["SmokeShell",1],["SmokeShellGreen",1],["SmokeShellGreen",1],["SmokeShellGreen",1],["SmokeShellGreen",1],["SmokeShellOrange",1],["SmokeShellOrange",1],["SmokeShellOrange",1],["SmokeShellOrange",1],["SmokeShellBlue",1],["SmokeShellBlue",1],["SmokeShellBlue",1],["SmokeShellBlue",1],["NLAW_F",1],["NLAW_F",1]]

Advertisement