MikeJHunter
Jun 8 2012, 18:27
What am I missing here?
//................................
// Ammo Box Germany
//................................
// Settings
_amountWeapon = 20;
_amountAmmo = 30;
_refreshTime = 360; // refill every 5 minutes
_this allowDamage false;
// Loop forever
while {true} do
{
// Clear box
clearWeaponCargo _this;
clearMagazineCargo _this;
// Fill box
// German Weapons
_this addWeaponCargo ["LIB_MP40", _amountWeapon];
_this addWeaponCargo ["LIB_M1908", _amountWeapon];
_this addWeaponCargo ["LIB_K98", _amountWeapon];
_this addWeaponCargo ["LIB_MG42", _amountWeapon];
_this addWeaponCargo ["LIB_MP44", _amountWeapon];
_this addWeaponCargo ["LIB_K98ZF39", _amountWeapon];
_this addWeaponCargo ["LIB_FLARE_PISTOL", _amountWeapon];
_this addWeaponCargo ["LIB_RPzB", _amountWeapon];
//Ammo
_this addMagazineCargo ["LIB_32Rnd_9x19", _amountAmmo];
_this addMagazineCargo ["lib_8rnd_9x19", _amountAmmo];
_this addMagazineCargo ["lib_5Rnd_792x57", _amountAmmo];
_this addMagazineCargo ["lib_50Rnd_792x57", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_RPzB", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_yellow", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_green", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_red", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_white", _amountAmmo];
_this addMagazineCargo ["LIB_Ladung_Big_MINE_mag", _amountAmmo];
// Wait the duration of the timer
sleep _refreshTime;
};
//................................
// Ammo Box Germany
//................................
// Settings
_amountWeapon = 20;
_amountAmmo = 30;
_refreshTime = 360; // refill every 5 minutes
_this allowDamage false;
// Loop forever
while {true} do
{
// Clear box
clearWeaponCargo _this;
clearMagazineCargo _this;
// Fill box
// German Weapons
_this addWeaponCargo ["LIB_MP40", _amountWeapon];
_this addWeaponCargo ["LIB_M1908", _amountWeapon];
_this addWeaponCargo ["LIB_K98", _amountWeapon];
_this addWeaponCargo ["LIB_MG42", _amountWeapon];
_this addWeaponCargo ["LIB_MP44", _amountWeapon];
_this addWeaponCargo ["LIB_K98ZF39", _amountWeapon];
_this addWeaponCargo ["LIB_FLARE_PISTOL", _amountWeapon];
_this addWeaponCargo ["LIB_RPzB", _amountWeapon];
//Ammo
_this addMagazineCargo ["LIB_32Rnd_9x19", _amountAmmo];
_this addMagazineCargo ["lib_8rnd_9x19", _amountAmmo];
_this addMagazineCargo ["lib_5Rnd_792x57", _amountAmmo];
_this addMagazineCargo ["lib_50Rnd_792x57", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_RPzB", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_yellow", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_green", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_red", _amountAmmo];
_this addMagazineCargo ["LIB_1Rnd_flare_white", _amountAmmo];
_this addMagazineCargo ["LIB_Ladung_Big_MINE_mag", _amountAmmo];
// Wait the duration of the timer
sleep _refreshTime;
};