Jump to content
Sign in to follow this  
darkxess

Universal Backpack Filler Script?

Recommended Posts

Hey guys, I know there is Universal Crate Filler But my question is can someone help me or make a script for a Universal Backpack Crate Filler please?

ACE2 has this function, but im wanting to have it in my mission for Vanilla OA. I know to find the class names and add them to a script blah blah blah but im not sure on how to do it. Any help please?

Thanks (yes I also did search, but found nothing)

Share this post


Link to post
Share on other sites
I use ACE 2 so I cant help you much but there is a lot of info in this thread:

http://forums.bistudio.com/showthread.php?t=103341

Not helpful im afraid, that is only adding it to a unit! im wanting to add the whole backpack inventry to an ammo box and refill it from time just like the ammo box filler. Ive looked everywhere for something but not found anything helpful :(

Share this post


Link to post
Share on other sites

If you are uing an Ammo crate filler add something like this in:-

_this addMagazineCargo ["BAF_AssaultPack_ARAmmo", _amountAmmo];

Just add as many diffrent ones as you need

list of backpacks can be found here:-

http://community.bistudio.com/wiki/ArmA_2_OA:_Backpacks

ammo crate filler :-

//................................

// Fill Ammo Box Script by Lzryde (v0.2)

//................................

// Settings

_amountWeapon = 20;

_amountAmmo = 100;

_refreshTime = 600; // refill every 120 minutes

_this allowDamage false;

// Loop forever

while {true} do

{

// Clear box

clearWeaponCargo _this;

clearMagazineCargo _this;

// Fill box

// US Army Weapons & Ammo

_this addWeaponCargo ["M14_EP1", _amountWeapon]; _this addMagazineCargo ["20Rnd_762x51_DMR", _amountAmmo];

_this addWeaponCargo ["M16A2", _amountWeapon];

_this addWeaponCargo ["M16A2GL", _amountWeapon]; _this addMagazineCargo ["1Rnd_HE_M203", _amountAmmo];

_this addMagazineCargo ["FlareWhite_M203", _amountAmmo];

_this addMagazineCargo ["FlareGreen_M203", _amountAmmo];

_this addMagazineCargo ["FlareRed_M203", _amountAmmo];

_this addMagazineCargo ["FlareYellow_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_Smoke_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_SmokeRed_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_SmokeGreen_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_SmokeYellow_M203", _amountAmmo];

_this addWeaponCargo ["M4A1", _amountWeapon];

_this addWeaponCargo ["M4A3_RCO_GL_EP1", _amountWeapon];

_this addWeaponCargo ["M4A3_CCO_EP1", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_CCO_SD", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_Holo", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_EGLM_Holo", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_RCO", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_TWS", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_HOLO", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_Mk4CQT", _amountWeapon];

_this addWeaponCargo ["SCAR_H_CQC_CCO", _amountWeapon]; _this addMagazineCargo ["20Rnd_762x51_B_SCAR", _amountAmmo];

_this addWeaponCargo ["SCAR_H_CQC_CCO_SD", _amountWeapon]; _this addMagazineCargo ["20Rnd_762x51_SB_SCAR", _amountAmmo];

_this addWeaponCargo ["SCAR_H_STD_EGLM_Spect", _amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper", _amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper_SD", _amountWeapon];

_this addWeaponCargo ["SCAR_H_STD_TWS_SD", _amountWeapon];

_this addWeaponCargo ["m240_scoped_EP1", _amountWeapon]; _this addMagazineCargo ["100Rnd_762x51_M240", _amountAmmo];

_this addWeaponCargo ["M249_EP1", _amountWeapon]; _this addMagazineCargo ["200Rnd_556x45_M249", _amountAmmo];

_this addMagazineCargo ["100Rnd_556x45_M249", _amountAmmo];

_this addWeaponCargo ["M249_m145_EP1", _amountWeapon];

_this addWeaponCargo ["M249_TWS_EP1", _amountWeapon];

_this addWeaponCargo ["M60A4_EP1", _amountWeapon];

_this addWeaponCargo ["Mk_48_DES_EP1", _amountWeapon];

_this addWeaponCargo ["m107", _amountWeapon]; _this addMagazineCargo ["10Rnd_127x99_m107", _amountAmmo];

_this addWeaponCargo ["m107_TWS_EP1", _amountWeapon];

_this addWeaponCargo ["M110_NVG_EP1", _amountWeapon];

_this addWeaponCargo ["M110_TWS_EP1", _amountWeapon];

_this addWeaponCargo ["M24_des_EP1", _amountWeapon]; _this addMagazineCargo ["5Rnd_762x51_M24", _amountAmmo];

_this addWeaponCargo ["Colt1911", _amountWeapon]; _this addMagazineCargo ["7Rnd_45ACP_1911", _amountAmmo];

_this addWeaponCargo ["M9", _amountWeapon]; _this addMagazineCargo ["15Rnd_9x19_M9", _amountAmmo];

_this addMagazineCargo ["15Rnd_9x19_M9SD", _amountAmmo];

_this addWeaponCargo ["M9SD", _amountWeapon];

_this addWeaponCargo ["Javelin", _amountWeapon]; _this addMagazineCargo ["Javelin", _amountAmmo];

_this addWeaponCargo ["Stinger", _amountWeapon]; _this addMagazineCargo ["Stinger", _amountAmmo];

_this addWeaponCargo ["M136", _amountWeapon]; _this addMagazineCargo ["M136", _amountAmmo];

_this addWeaponCargo ["M47Launcher_EP1", _amountWeapon]; _this addMagazineCargo ["Dragon_EP1", _amountAmmo];

_this addWeaponCargo ["MAAWS", _amountWeapon]; _this addMagazineCargo ["MAAWS_HEAT", _amountAmmo];

_this addMagazineCargo ["MAAWS_HEDP", _amountAmmo];

_this addWeaponCargo ["Mk13_EP1", _amountWeapon];

_this addWeaponCargo ["M32_EP1", _amountWeapon]; _this addMagazineCargo ["6Rnd_HE_M203", _amountAmmo];

_this addWeaponCargo ["M79_EP1", _amountWeapon];

_this addMagazineCargo ["HandGrenade_West", _amountAmmo];

// German Weapons

_this addWeaponCargo ["G36A_camo", _amountWeapon]; _this addMagazineCargo ["30Rnd_556x45_G36", _amountAmmo];

_this addMagazineCargo ["100Rnd_556x45_BetaCMag", _amountAmmo];

_this addMagazineCargo ["30Rnd_556x45_G36SD", _amountAmmo];

_this addMagazineCargo ["30Rnd_556x45_Stanag", _amountAmmo];

_this addMagazineCargo ["30Rnd_556x45_StanagSD", _amountAmmo];

_this addMagazineCargo ["20Rnd_556x45_Stanag", _amountAmmo];

_this addWeaponCargo ["G36C_camo", _amountWeapon];

_this addWeaponCargo ["G36_C_SD_camo", _amountWeapon];

_this addWeaponCargo ["G36K_camo", _amountWeapon];

_this addWeaponCargo ["MG36_camo", _amountWeapon];

_this addWeaponCargo ["glock17_EP1", _amountWeapon]; _this addMagazineCargo ["17Rnd_9x19_glock17", _amountAmmo];

// Czeck Weapons

_this addWeaponCargo ["Sa58P_EP1", _amountWeapon]; _this addMagazineCargo ["30Rnd_762x39_SA58", _amountAmmo];

_this addWeaponCargo ["Sa58V_EP1", _amountWeapon];

_this addWeaponCargo ["Sa58V_RCO_EP1", _amountWeapon];

_this addWeaponCargo ["Sa58V_CCO_EP1", _amountWeapon];

_this addWeaponCargo ["Sa61_EP1", _amountWeapon]; _this addMagazineCargo ["20Rnd_B_765x17_Ball", _amountAmmo];

//PMC WEAPONS//

_this addWeaponCargo ["AA12_PMC",_amountWeapon];

_this addWeaponCargo ["m8_compact_pmc",_amountWeapon];

_this addWeaponCargo ["m8_carbine_pmc",_amountWeapon];

_this addWeaponCargo ["m8_holo_sd",_amountWeapon];

_this addWeaponCargo ["m8_tws",_amountWeapon];

_this addWeaponCargo ["m8_tws_sd",_amountWeapon];

// Other Weapons

_this addMagazineCargo ["SmokeShell", _amountAmmo];

_this addMagazineCargo ["SmokeShellRed", _amountAmmo];

_this addMagazineCargo ["SmokeShellGreen", _amountAmmo];

_this addMagazineCargo ["SmokeShellYellow", _amountAmmo];

_this addMagazineCargo ["SmokeShellOrange", _amountAmmo];

_this addMagazineCargo ["SmokeShellPurple", _amountAmmo];

_this addMagazineCargo ["SmokeShellBlue", _amountAmmo];

_this addMagazineCargo ["PipeBomb", _amountAmmo];

_this addMagazineCargo ["Mine", _amountAmmo];

_this addMagazineCargo ["HandGrenade_Stone", _amountAmmo];

_this addWeaponCargo ["Binocular_Vector", _amountWeapon];

_this addWeaponCargo ["Binocular", _amountWeapon];

_this addWeaponCargo ["Laserdesignator", _amountWeapon]; _this addMagazineCargo ["Laserbatteries", _amountAmmo];

_this addWeaponCargo ["NVGoggles", _amountWeapon];

_this addMagazineCargo ["IRStrobe", _amountWeapon];

_this addMagazineCargo ["IR_Strobe_Marker", _amountWeapon];

_this addWeaponCargo ["ItemGPS", _amountWeapon];

//BAF WEAPONS//

_this addWeaponCargo ["BAF_AS50_scoped",_amountWeapon];

_this addWeaponCargo ["BAF_AS50_TWS",_amountWeapon];

_this addWeaponCargo ["BAF_L7A2_GPMG",_amountWeapon];

_this addWeaponCargo ["BAF_L110A1_Aim",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_ACOG",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_CWS",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_Holo",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_SUSAT",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_UGL_ACOG",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_UGL_Holo",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_UGL_SUSAT",_amountWeapon];

_this addWeaponCargo ["BAF_L86A2_ACOG",_amountWeapon];

_this addWeaponCargo ["BAF_LRR_scoped",_amountWeapon];

_this addWeaponCargo ["BAF_LRR_scoped_W",_amountWeapon];

_this addWeaponCargo ["BAF_NLAW_Launcher",_amountWeapon];

_this addWeaponCargo ["Sa58P_EP1",_amountWeapon];

_this addWeaponCargo ["Sa58V_CCO_EP1",_amountWeapon];

_this addWeaponCargo ["Sa58V_EP1",_amountWeapon];

_this addWeaponCargo ["Sa58V_RCO_EP1",_amountWeapon];

_this addWeaponCargo ["SCAR_H_CQC_CCO",_amountWeapon];

_this addWeaponCargo ["SCAR_H_CQC_CCO_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper",_amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_H_STD_EGLM_Spect",_amountWeapon];

_this addWeaponCargo ["SCAR_H_STD_TWS_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_CCO_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_EGLM_Holo",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_Holo",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_RCO",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_TWS",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_HOLO",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_Mk4CQT",_amountWeapon];

_this addWeaponCargo ["SVD_des_EP1",_amountWeapon];

_this addWeaponCargo ["SVD_NSPU_EP1",_amountWeapon];

_this addWeaponCargo ["Binocular_Vector",_amountWeapon];

//BAF AMMO//

_this addMagazineCargo ["NLAW",_amountWeapon];

_this addMagazineCargo ["200Rnd_556x45_L110A1",_amountWeapon];

_this addMagazineCargo ["200Rnd_762x54_GPMG",_amountWeapon];

_this addMagazineCargo ["5Rnd_86x70_L115A1",_amountWeapon];

_this addMagazineCargo ["12Rnd_CRV7",_amountWeapon];

_this addMagazineCargo ["5Rnd_127x99_as50",_amountWeapon];

_this addMagazineCargo ["SmokeShellBlue",_amountWeapon];

_this addMagazineCargo ["SmokeShellPurple",_amountWeapon];

_this addMagazineCargo ["SmokeShellOrange",_amountWeapon];

//PMC AMMO//

_this addMagazineCargo ["20Rnd_B_AA12_74Slug",_amountWeapon];

_this addMagazineCargo ["20Rnd_B_AA12_HE",_amountWeapon];

_this addMagazineCargo ["20Rnd_B_AA12_Pellets",_amountWeapon];

// Wait the duration of _refreshTime

sleep _refreshTime;

};

Share this post


Link to post
Share on other sites

Would that way work JUST for bags? so it would be something like this:

//................................

// Fill Ammo Box Script by Lzryde (v0.2)

//................................

// Settings

_addMagazineCargo = 100;

_amountAmmo = 100;

_refreshTime = 600; // refill every 120 minutes

_this allowDamage false;

// Loop forever

while {true} do

{

// Clear box

clearWeaponCargo _this;

clearamountAmmo _this;

// Fill box

_this addMagazineCargo ["US_UAV_Pack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_Ammo_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_AmmoSAW_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_AT_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_Explosives_EP1", _amountAmmo];

_this addMagazineCargo ["US_Patrol_Pack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Patrol_Pack_Ammo_EP1", _amountAmmo];

_this addMagazineCargo ["US_Patrol_Pack_Specops_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_AmmoMG_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_AT_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_Specops_EP1", _amountAmmo];

// Wait the duration of _refreshTime

sleep _refreshTime;

};

And so on.... this would work this way right?

Edited by DarkXess

Share this post


Link to post
Share on other sites
Would that way work JUST for bags? so it would be something like this:

And so on.... this would work this way right?

Pretty much, they are just treated as weapons.

Make sure the box is big enough to hold them all though.

Share this post


Link to post
Share on other sites

Ok, ive made the script like above, put the name of how to call it in the init box of the

ammo box im using! and nothing, not working! though no errors...

So obviously that isnt gonna work! :(

Share this post


Link to post
Share on other sites
Ok, ive made the script like above, put the name of how to call it in the init box of the

ammo box im using! and nothing, not working! though no errors...

So obviously that isnt gonna work! :(

Box is probably too small to fit 100 of each type of backpack, try putting one of each in.

I tend to use the large vehicle ammoboxes for all weapon fill scripts as well so everything fits in.

Share this post


Link to post
Share on other sites

on this topic, anyone know how to locate all backpacks in cfg files?

Share this post


Link to post
Share on other sites

Ive still not got it to work by having it give just 1 bag!

This is how im calling it:

nul = [this] execVM "scripts\BagFiller.sqf"

Its obviously named "BagFiller.sqf"

here is the script:

//////////////////////////////////////////////////////////////////

// BackPack Crate Filler

// Init Box: nul = [this] execVM "BagFiller.sqf"

//////////////////////////////////////////////////////////////////

// Settings

_addMagazineCargo = 1;

_amountAmmo = 1;

_refreshTime = 600; // refill every 120 minutes

_this allowDamage false;

// Loop forever

while {true} do

{

// Clear box

clearWeaponCargo _this;

clearamountAmmo _this;

// Fill box

_this addMagazineCargo ["US_UAV_Pack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_Ammo_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_AmmoSAW_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_AT_EP1", _amountAmmo];

_this addMagazineCargo ["US_Assault_Pack_Explosives_EP1", _amountAmmo];

_this addMagazineCargo ["US_Patrol_Pack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Patrol_Pack_Ammo_EP1", _amountAmmo];

_this addMagazineCargo ["US_Patrol_Pack_Specops_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_AmmoMG_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_AT_EP1", _amountAmmo];

_this addMagazineCargo ["US_Backpack_Specops_EP1", _amountAmmo];

// Wait the duration of _refreshTime

sleep _refreshTime;

};

Is everything looking ok? lol this is taking me so long, and its just for BAGS!!!!!!!!!!! lol

Edited by DarkXess

Share this post


Link to post
Share on other sites

bags are vehicles and not weapons or magazines so it comes up with cfg error.

waiting for psivalli if he has a workaround.

Share this post


Link to post
Share on other sites

Ok im peed off now! ive tried everything, every command! and whatever im doing wrong I just cant get it right? can someone please help me with a working script to refill it with these bags every such and such time? thanks.

Bags:

US_UAV_Pack_EP1

US_Assault_Pack_EP1

US_Assault_Pack_Ammo_EP1

US_Assault_Pack_AmmoSAW_EP1

US_Assault_Pack_AT_EP1

US_Assault_Pack_Explosives_EP1

US_Patrol_Pack_EP1

US_Patrol_Pack_Ammo_EP1

US_Patrol_Pack_Specops_EP1

US_Backpack_EP1

US_Backpack_AmmoMG_EP1

US_Backpack_AT_EP1

US_Backpack_Specops_EP1

Share this post


Link to post
Share on other sites

Opps my Bad sorry was at work !

Just tested and this works fine !

_this addBackpackCargo ["BAF_AssaultPack_FAC",2];  //change to how many you need

Any problems let us know !

Share this post


Link to post
Share on other sites

Ok, so then the script should look like this:

//////////////////////////////////////////////////////////////////

// BackPack Crate Filler

// Init Box: nul = [this] execVM "BagFiller.sqf"

//////////////////////////////////////////////////////////////////

// Settings

_addMagazineCargo = 1;

_amountAmmo = 1;

_refreshTime = 600; // refill every 120 minutes

_this allowDamage false;

// Loop forever

while {true} do

{

// Clear box

clearWeaponCargo _this;

clearamountAmmo _this;

// Fill box

_this addBackpackCargo ["BAF_AssaultPack_FAC",2];

// Wait the duration of _refreshTime

sleep _refreshTime;

};

And I put this in the init box: nul = [this] execVM "BagFiller.sqf"

BUT* still not working! :( ... what am I doing wrong? the script must be wrong!

Share this post


Link to post
Share on other sites

Try this

in the ini of the ammo box put the below the i am using BAF basic weapons ammo crate :-

_Handle = this execVM "FillAmmoBox.sqf";

then

FillAmmoBox.sqf as below

//................................

// Fill Ammo Box Script by Lzryde (v0.2)

//................................

// Settings

_amountWeapon = 20;

_amountAmmo = 100;

_refreshTime = 600; // refill every 120 minutes

_this allowDamage false;

// Loop forever

while {true} do

{

// Clear box

clearWeaponCargo _this;

clearMagazineCargo _this;

// Fill box

// US Army Weapons & Ammo

_this addWeaponCargo ["M14_EP1", _amountWeapon]; _this addMagazineCargo ["20Rnd_762x51_DMR", _amountAmmo];

_this addWeaponCargo ["M16A2", _amountWeapon];

_this addWeaponCargo ["M16A2GL", _amountWeapon]; _this addMagazineCargo ["1Rnd_HE_M203", _amountAmmo];

_this addMagazineCargo ["FlareWhite_M203", _amountAmmo];

_this addMagazineCargo ["FlareGreen_M203", _amountAmmo];

_this addMagazineCargo ["FlareRed_M203", _amountAmmo];

_this addMagazineCargo ["FlareYellow_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_Smoke_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_SmokeRed_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_SmokeGreen_M203", _amountAmmo];

_this addMagazineCargo ["1Rnd_SmokeYellow_M203", _amountAmmo];

_this addWeaponCargo ["M4A1", _amountWeapon];

_this addWeaponCargo ["M4A3_RCO_GL_EP1", _amountWeapon];

_this addWeaponCargo ["M4A3_CCO_EP1", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_CCO_SD", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_Holo", _amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_EGLM_Holo", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_RCO", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_TWS", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_HOLO", _amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_Mk4CQT", _amountWeapon];

_this addWeaponCargo ["SCAR_H_CQC_CCO", _amountWeapon]; _this addMagazineCargo ["20Rnd_762x51_B_SCAR", _amountAmmo];

_this addWeaponCargo ["SCAR_H_CQC_CCO_SD", _amountWeapon]; _this addMagazineCargo ["20Rnd_762x51_SB_SCAR", _amountAmmo];

_this addWeaponCargo ["SCAR_H_STD_EGLM_Spect", _amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper", _amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper_SD", _amountWeapon];

_this addWeaponCargo ["SCAR_H_STD_TWS_SD", _amountWeapon];

_this addWeaponCargo ["m240_scoped_EP1", _amountWeapon]; _this addMagazineCargo ["100Rnd_762x51_M240", _amountAmmo];

_this addWeaponCargo ["M249_EP1", _amountWeapon]; _this addMagazineCargo ["200Rnd_556x45_M249", _amountAmmo];

_this addMagazineCargo ["100Rnd_556x45_M249", _amountAmmo];

_this addWeaponCargo ["M249_m145_EP1", _amountWeapon];

_this addWeaponCargo ["M249_TWS_EP1", _amountWeapon];

_this addWeaponCargo ["M60A4_EP1", _amountWeapon];

_this addWeaponCargo ["Mk_48_DES_EP1", _amountWeapon];

_this addWeaponCargo ["m107", _amountWeapon]; _this addMagazineCargo ["10Rnd_127x99_m107", _amountAmmo];

_this addWeaponCargo ["m107_TWS_EP1", _amountWeapon];

_this addWeaponCargo ["M110_NVG_EP1", _amountWeapon];

_this addWeaponCargo ["M110_TWS_EP1", _amountWeapon];

_this addWeaponCargo ["M24_des_EP1", _amountWeapon]; _this addMagazineCargo ["5Rnd_762x51_M24", _amountAmmo];

_this addWeaponCargo ["Colt1911", _amountWeapon]; _this addMagazineCargo ["7Rnd_45ACP_1911", _amountAmmo];

_this addWeaponCargo ["M9", _amountWeapon]; _this addMagazineCargo ["15Rnd_9x19_M9", _amountAmmo];

_this addMagazineCargo ["15Rnd_9x19_M9SD", _amountAmmo];

_this addWeaponCargo ["M9SD", _amountWeapon];

_this addWeaponCargo ["Javelin", _amountWeapon]; _this addMagazineCargo ["Javelin", _amountAmmo];

_this addWeaponCargo ["Stinger", _amountWeapon]; _this addMagazineCargo ["Stinger", _amountAmmo];

_this addWeaponCargo ["M136", _amountWeapon]; _this addMagazineCargo ["M136", _amountAmmo];

_this addWeaponCargo ["M47Launcher_EP1", _amountWeapon]; _this addMagazineCargo ["Dragon_EP1", _amountAmmo];

_this addWeaponCargo ["MAAWS", _amountWeapon]; _this addMagazineCargo ["MAAWS_HEAT", _amountAmmo];

_this addMagazineCargo ["MAAWS_HEDP", _amountAmmo];

_this addWeaponCargo ["Mk13_EP1", _amountWeapon];

_this addWeaponCargo ["M32_EP1", _amountWeapon]; _this addMagazineCargo ["6Rnd_HE_M203", _amountAmmo];

_this addWeaponCargo ["M79_EP1", _amountWeapon];

_this addMagazineCargo ["HandGrenade_West", _amountAmmo];

// German Weapons

_this addWeaponCargo ["G36A_camo", _amountWeapon]; _this addMagazineCargo ["30Rnd_556x45_G36", _amountAmmo];

_this addMagazineCargo ["100Rnd_556x45_BetaCMag", _amountAmmo];

_this addMagazineCargo ["30Rnd_556x45_G36SD", _amountAmmo];

_this addMagazineCargo ["30Rnd_556x45_Stanag", _amountAmmo];

_this addMagazineCargo ["30Rnd_556x45_StanagSD", _amountAmmo];

_this addMagazineCargo ["20Rnd_556x45_Stanag", _amountAmmo];

_this addWeaponCargo ["G36C_camo", _amountWeapon];

_this addWeaponCargo ["G36_C_SD_camo", _amountWeapon];

_this addWeaponCargo ["G36K_camo", _amountWeapon];

_this addWeaponCargo ["MG36_camo", _amountWeapon];

_this addWeaponCargo ["glock17_EP1", _amountWeapon]; _this addMagazineCargo ["17Rnd_9x19_glock17", _amountAmmo];

// Czeck Weapons

_this addWeaponCargo ["Sa58P_EP1", _amountWeapon]; _this addMagazineCargo ["30Rnd_762x39_SA58", _amountAmmo];

_this addWeaponCargo ["Sa58V_EP1", _amountWeapon];

_this addWeaponCargo ["Sa58V_RCO_EP1", _amountWeapon];

_this addWeaponCargo ["Sa58V_CCO_EP1", _amountWeapon];

_this addWeaponCargo ["Sa61_EP1", _amountWeapon]; _this addMagazineCargo ["20Rnd_B_765x17_Ball", _amountAmmo];

//PMC WEAPONS//

_this addWeaponCargo ["AA12_PMC",_amountWeapon];

_this addWeaponCargo ["m8_compact_pmc",_amountWeapon];

_this addWeaponCargo ["m8_carbine_pmc",_amountWeapon];

_this addWeaponCargo ["m8_holo_sd",_amountWeapon];

_this addWeaponCargo ["m8_tws",_amountWeapon];

_this addWeaponCargo ["m8_tws_sd",_amountWeapon];

// Other Weapons

_this addMagazineCargo ["SmokeShell", _amountAmmo];

_this addMagazineCargo ["SmokeShellRed", _amountAmmo];

_this addMagazineCargo ["SmokeShellGreen", _amountAmmo];

_this addMagazineCargo ["SmokeShellYellow", _amountAmmo];

_this addMagazineCargo ["SmokeShellOrange", _amountAmmo];

_this addMagazineCargo ["SmokeShellPurple", _amountAmmo];

_this addMagazineCargo ["SmokeShellBlue", _amountAmmo];

_this addMagazineCargo ["PipeBomb", _amountAmmo];

_this addMagazineCargo ["Mine", _amountAmmo];

_this addMagazineCargo ["HandGrenade_Stone", _amountAmmo];

_this addWeaponCargo ["Binocular_Vector", _amountWeapon];

_this addWeaponCargo ["Binocular", _amountWeapon];

_this addWeaponCargo ["Laserdesignator", _amountWeapon]; _this addMagazineCargo ["Laserbatteries", _amountAmmo];

_this addWeaponCargo ["NVGoggles", _amountWeapon];

_this addMagazineCargo ["IRStrobe", _amountWeapon];

_this addMagazineCargo ["IR_Strobe_Marker", _amountWeapon];

_this addWeaponCargo ["ItemGPS", _amountWeapon];

//BAF WEAPONS//

_this addWeaponCargo ["BAF_AS50_scoped",_amountWeapon];

_this addWeaponCargo ["BAF_AS50_TWS",_amountWeapon];

_this addWeaponCargo ["BAF_L7A2_GPMG",_amountWeapon];

_this addWeaponCargo ["BAF_L110A1_Aim",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_ACOG",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_CWS",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_Holo",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_RIS_SUSAT",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_UGL_ACOG",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_UGL_Holo",_amountWeapon];

_this addWeaponCargo ["BAF_L85A2_UGL_SUSAT",_amountWeapon];

_this addWeaponCargo ["BAF_L86A2_ACOG",_amountWeapon];

_this addWeaponCargo ["BAF_LRR_scoped",_amountWeapon];

_this addWeaponCargo ["BAF_LRR_scoped_W",_amountWeapon];

_this addWeaponCargo ["BAF_NLAW_Launcher",_amountWeapon];

_this addWeaponCargo ["Sa58P_EP1",_amountWeapon];

_this addWeaponCargo ["Sa58V_CCO_EP1",_amountWeapon];

_this addWeaponCargo ["Sa58V_EP1",_amountWeapon];

_this addWeaponCargo ["Sa58V_RCO_EP1",_amountWeapon];

_this addWeaponCargo ["SCAR_H_CQC_CCO",_amountWeapon];

_this addWeaponCargo ["SCAR_H_CQC_CCO_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper",_amountWeapon];

_this addWeaponCargo ["SCAR_H_LNG_Sniper_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_H_STD_EGLM_Spect",_amountWeapon];

_this addWeaponCargo ["SCAR_H_STD_TWS_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_CCO_SD",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_EGLM_Holo",_amountWeapon];

_this addWeaponCargo ["SCAR_L_CQC_Holo",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_RCO",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_EGLM_TWS",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_HOLO",_amountWeapon];

_this addWeaponCargo ["SCAR_L_STD_Mk4CQT",_amountWeapon];

_this addWeaponCargo ["SVD_des_EP1",_amountWeapon];

_this addWeaponCargo ["SVD_NSPU_EP1",_amountWeapon];

_this addWeaponCargo ["Binocular_Vector",_amountWeapon];

//BAF AMMO//

_this addMagazineCargo ["NLAW",_amountWeapon];

_this addMagazineCargo ["200Rnd_556x45_L110A1",_amountWeapon];

_this addMagazineCargo ["200Rnd_762x54_GPMG",_amountWeapon];

_this addMagazineCargo ["5Rnd_86x70_L115A1",_amountWeapon];

_this addMagazineCargo ["12Rnd_CRV7",_amountWeapon];

_this addMagazineCargo ["5Rnd_127x99_as50",_amountWeapon];

_this addMagazineCargo ["SmokeShellBlue",_amountWeapon];

_this addMagazineCargo ["SmokeShellPurple",_amountWeapon];

_this addMagazineCargo ["SmokeShellOrange",_amountWeapon];

_this addBackpackCargo ["BAF_AssaultPack_FAC",2];

//PMC AMMO//

_this addMagazineCargo ["20Rnd_B_AA12_74Slug",_amountWeapon];

_this addMagazineCargo ["20Rnd_B_AA12_HE",_amountWeapon];

_this addMagazineCargo ["20Rnd_B_AA12_Pellets",_amountWeapon];

// Wait the duration of _refreshTime

sleep _refreshTime;

};

if that does not work PM me and ill send you it but that is working for me

Share this post


Link to post
Share on other sites

Man!!! its bags I want!!! lol did you read my first post? haha... This is weapons and ammo

in which ive already got with the Universal Crate Filler script! im just looking for a single script to ADD BAGS to an ammo box! ONLY BAGS! lol ...

Sorry

Share this post


Link to post
Share on other sites

run the script then Look at the bottom of the ammo crate and you will see the bag !?!

It was a demo to show you it works , then remove the weapons and just put in your bags you need !

Share this post


Link to post
Share on other sites

Im sorry! .. thanks that works now :) all flippin day ive been trying to get it sorted! lol.

Cheers again mate.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×