Jump to content
  • 0

Static Crates ive placed despawning....


Buck0

Question

heres the script, they didnt despawn last patch only seems to be with most recent patch

if !(isServer) exitWith {};
 
//AI WEAPON CRATES
 
  _this = createVehicle ["TKVehicleBox_EP1", [8849.92,12502.7,0.018], [], 0, "CAN_COLLIDE"]; 
  _vehicle_103769 = _this;
  _vehicle_103769 setVariable ["ObjectID","1",true];
  _vehicle_103769 setVariable ["permaLoot",true];
    //Clear Cargo
  clearweaponcargoGlobal _this;
  clearmagazinecargoGlobal _this;
  //Add Cargo
  _this addWeaponCargoGlobal ["M9SD",5];
  _this addWeaponCargoGlobal ["DMR",3];
  _this addWeaponCargoGlobal ["M4A1_AIM_SD_camo",3];
  _this addWeaponCargoGlobal ["M4A1_HWS_GL",2];
  _this addWeaponCargoGlobal ["M249_DZ",3];
  _this addWeaponCargoGlobal ["M14_EP1",3];
  _this addWeaponCargoGlobal ["Mk_48_DZ",3];
  _this addWeaponCargoGlobal ["M110_NVG_EP1",2];
  _this addWeaponCargoGlobal ["M4A3_CCO_EP1",3];
  _this addWeaponCargoGlobal ["M4A1_HWS_GL_SD_Camo",5];
  _this addWeaponCargoGlobal ["UZI_SD_EP1",2];
  _this addWeaponCargoGlobal ["NVGoggles",5];
  _this addWeaponCargoGlobal ["Binocular_Vector",5];
  _this addWeaponCargoGlobal ["ItemGPS",5];
 
  _this addmagazineCargoGlobal ["20Rnd_762x51_DMR",20];
  _this addmagazineCargoGlobal ["30Rnd_556x45_StanagSD",20];
  _this addmagazineCargoGlobal ["200Rnd_556x45_M249",10];
  _this addmagazineCargoGlobal ["30Rnd_556x45_Stanag",40];
  _this addmagazineCargoGlobal ["15Rnd_9x19_M9SD",30];
  _this addmagazineCargoGlobal ["30Rnd_9x19_UZI_SD",30];
  _this addmagazineCargoGlobal ["1Rnd_HE_M203",10];
  _this addmagazineCargoGlobal ["ItemBriefcase100oz",5];
 
  _this addbackpackCargoGlobal ["DZ_largeGunBag_EP1",4];
  _this setPos [8849.92,12502.7,0.018];
 
//AI VEHICLE CREATE
 
  _this = createVehicle ["TKVehicleBox_EP1", [8924.84,12457.6,0.905], [], 0, "CAN_COLLIDE"];
  _vehicle_103770 = _this;
  _vehicle_103770 setVariable ["ObjectID","1",true];
  _vehicle_103770 setVariable ["permaLoot",true];
    //Clear Cargo
  clearweaponcargoGlobal _this;
  clearmagazinecargoGlobal _this;
  //Add Cargo
  _this addWeaponCargoGlobal ["ItemToolbox",25]; 
  _this addmagazineCargoGlobal ["PartEngine",25];
  _this addmagazineCargoGlobal ["PartGeneric",50];
  _this addmagazineCargoGlobal ["PartVRotor",25];
  _this addmagazineCargoGlobal ["PartWheel",25];
  _this addmagazineCargoGlobal ["PartFueltank",25];
  _this addmagazineCargoGlobal ["ItemBriefcase100oz",2];
 
  _this addbackpackCargoGlobal ["DZ_largeGunBag_EP1",4];
  _this setPos [8924.84,12457.6,0.905];
 
 
//AI MEDICAL CRATE
 
  _this = createVehicle ["TKVehicleBox_EP1", [8980.64,12501,0.001], [], 0, "CAN_COLLIDE"];  
  _vehicle_103772 = _this;
  _vehicle_103772 setVariable ["ObjectID","1",true];
  _vehicle_103772 setVariable ["permaLoot",true];
  //Clear Cargo
  clearweaponcargoGlobal _this;
  clearmagazinecargoGlobal _this;
  //Add Cargo
  _this addmagazineCargoGlobal ["ItemBandage",30];
  _this addmagazineCargoGlobal ["ItemPainkiller",30];                  
  _this addmagazineCargoGlobal ["ItemMorphine",30];
  _this addmagazineCargoGlobal ["ItemBloodBag",30];
  _this addmagazineCargoGlobal ["ItemEpinephrine",30];
  _this addmagazineCargoGlobal ["ItemAntibiotic",30];
  _this addmagazineCargoGlobal ["ItemWaterbottleBoiled",30];
  _this addmagazineCargoGlobal ["FoodSteakCooked",30];
  _this addmagazineCargoGlobal ["ItemBriefcase100oz",2];
 
  _this addbackpackCargoGlobal ["DZ_largeGunBag_EP1",4];
  _this setPos [8981.04,12500.1,0.001];
 
//AI CONSTRUCTION CRATE
 
  _this = createVehicle ["TKVehicleBox_EP1", [8895.92,12607.3,0.338], [], 0, "CAN_COLLIDE"];
  _vehicle_103773 = _this;
  _vehicle_103773 setVariable ["ObjectID","1",true];
  _vehicle_103773 setVariable ["permaLoot",true];
  //Clear Cargo
  clearweaponcargoGlobal _this;
  clearmagazinecargoGlobal _this;
  //Add Cargo
  _this addWeaponCargoGlobal ["ItemEtool",5];
  _this addWeaponCargoGlobal ["ItemCrowbar",5];
  _this addWeaponCargoGlobal ["ItemToolbox",5];
  _this addWeaponCargoGlobal ["ItemMatchbox",5];
  _this addWeaponCargoGlobal ["ItemKnife",5]; 
  _this addmagazineCargoGlobal ["bulk_ItemSandbag",5];
  _this addmagazineCargoGlobal ["bulk_ItemTankTrap",5];
  _this addmagazineCargoGlobal ["bulk_ItemWire",5];
  _this addmagazineCargoGlobal ["ItemTent",5];
  _this addmagazineCargoGlobal ["bulk_PartGeneric",5];
  _this addmagazineCargoGlobal ["CinderBlocks",60];
  _this addmagazineCargoGlobal ["MortarBucket",20];
  _this addmagazineCargoGlobal ["ItemFuelPump",1];
  _this addmagazineCargoGlobal ["ItemVault",1];
  _this addmagazineCargoGlobal ["ItemComboLock",4];
  _this addmagazineCargoGlobal ["30m_plot_kit",1];
 
  _this addbackpackCargoGlobal ["DZ_largeGunBag_EP1",2];
  _this setPos [8895.92,12607.3,0.338]; 
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...