Buck0 Posted February 8, 2014 Report Share Posted February 8, 2014 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 More sharing options...
0 Defent Posted February 8, 2014 Report Share Posted February 8, 2014 Check your .rpt for any instance of them being removed. If so, post it here please. Link to comment Share on other sites More sharing options...
0 Richie Posted February 8, 2014 Report Share Posted February 8, 2014 Server cleanup is removing them, add a variable :) _this setVariable ["permaLoot",true]; Link to comment Share on other sites More sharing options...
0 Buck0 Posted February 9, 2014 Author Report Share Posted February 9, 2014 Ive already got that in this script? Or do I need to add the variable to the cleanup.fsm? Link to comment Share on other sites More sharing options...
0 Buck0 Posted February 9, 2014 Author Report Share Posted February 9, 2014 Oh ok cheers! Will test when im home Link to comment Share on other sites More sharing options...
0 Buck0 Posted February 13, 2014 Author Report Share Posted February 13, 2014 added the above fix, still despawning infact i left one crate without that fix to see if it worked the crate i didnt change is the only one that didnt despawn Link to comment Share on other sites More sharing options...
0 Mr.Rodgers Posted February 13, 2014 Report Share Posted February 13, 2014 Are they despawning and kicking players that get near could be your anti hack deleting them. look for a max cargo count some where if that is the case. Link to comment Share on other sites More sharing options...
0 Halvhjearne Posted February 13, 2014 Report Share Posted February 13, 2014 _this setVariable ["permaLoot",true]; should be: _this setVariable ["permaLoot",true,true]; Link to comment Share on other sites More sharing options...
0 Buck0 Posted February 13, 2014 Author Report Share Posted February 13, 2014 Its not kickin players at all, seems to be being deleted after someone has visited one of the crates, the time is random but they only despawn aftersomeone has interacted with one of the crates then they all seem to be ccleaned up Link to comment Share on other sites More sharing options...
0 WGC GeekGarage Posted February 14, 2014 Report Share Posted February 14, 2014 yep you need that extra true on perma loot so it broadcast the message/var to all clients that it's permaloot Link to comment Share on other sites More sharing options...
0 Buck0 Posted February 14, 2014 Author Report Share Posted February 14, 2014 Kk will test when home and report Thanks Link to comment Share on other sites More sharing options...
Question
Buck0
heres the script, they didnt despawn last patch only seems to be with most recent patch
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 accountSign in
Already have an account? Sign in here.
Sign In Now