Jump to content
  • 0

Is inifistar stopping this script from working?


monkeybrain

Question


if (isServer) then {

		_vehicle_99 = objNull;
		
		if (true) then
		{
		  _this = createVehicle ["SpecialWeaponsBox", [8985.9727, 5880.356, 0.23051879883], [], 0, "CAN_COLLIDE"];
		  _vehicle_99 = _this;
		  _this setDir 20;
          _this setVariable ["permaLoot",true];
		  
		  clearWeaponCargoGlobal _this;
		  clearMagazineCargoGlobal _this;

		  
		  _this addMagazineCargoGlobal ["ItemBriefcase100oz",4];
		  _this addMagazineCargoGlobal ["ItemVault",1];
		  _this addMagazineCargoGlobal ["Skin_Graves_Light_DZ",1];
		  _this addMagazineCargoGlobal ["PipeBomb",2];
		  _this addWeaponCargoGlobal ["ItemGPS",1];
		  _this addWeaponCargoGlobal ["Binocular_Vector",1];
          _this addWeaponCargoGlobal ["ItemComboLock",2];
          _this addWeaponCargoGlobal ["ItemObsidian",4];
          _this addWeaponCargoGlobal ["ItemBronzeBar",2];
          _this addWeaponCargoGlobal ["RH_deagle",1];
          _this addWeaponCargoGlobal ["SCAR_H_LNG_Sniper",1];
          _this addWeaponCargoGlobal ["vil_10Rnd_SVDK",3];
          _this addWeaponCargoGlobal ["vil_SV_98",1];
		  _this addMagazineCargoGlobal ["Skin_CZ_Special_Forces_GL_DES_EP1_DZ",1];
		
		};
		};

         _laptop = laptop ;
        deleteVehicle _laptop;
        

So i have this box spawning in when i activate it from a computer called 'laptop"

 

It works fine in editor, box spawns in and the computer deletes itself, however in multiplayer  the box does not spawn and the laptop does not delete itself. Anyone know why?

Link to comment
Share on other sites

3 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...