Jump to content

Buck0

Member
  • Posts

    521
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Buck0

  1. so ive set up an ai base, putting several chest in full of rewards for players

     

    however ive hit a wall and cant get them to spawn in..... any ideas what im doing wrong??

    if (isServer) then {
    
    //AI WEAPON CRATES
    _vehicle_103769 = objNull;
    if (true) then
    {
      _this = createVehicle ["USSpecialWeapons", [8849.99,12499.5,0.02], [], 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_TWS_EP1",2];
      _this addWeaponCargoGlobal ["M4A3_CCO_EP1",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.99,12499.5,0.02];
    };
    //AI VEHICLE CREATE
    _vehicle_103770 = objNull;
    if (true) then
    {
      _this = createVehicle ["USSpecialWeapons", [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",20];
      _this addmagazineCargoGlobal ["PartGeneric",40];
      _this addmagazineCargoGlobal ["PartVRotor",20];
      _this addmagazineCargoGlobal ["PartWheel",20];
      _this addmagazineCargoGlobal ["PartFueltank",20];
      _this addmagazineCargoGlobal ["ItemBriefcase100oz",2];
    
      _this addbackpackCargoGlobal ["DZ_largeGunBag_EP1",4];
      _this setPos [8924.84,12457.6,0.905];
    };
    
    //AI MEDICAL CRATE
    _vehicle_103772 = objNull;
    if (true) then
    {
      _this = createVehicle ["USSpecialWeapons", [8849.72,12503.8,0.014], [], 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",15];
      _this addmagazineCargoGlobal ["ItemAntibiotic",30];
      _this addmagazineCargoGlobal ["ItemWaterbottleBoiled",30];
      _this addmagazineCargoGlobal ["FoodSteakCooked",30];
      _this addmagazineCargoGlobal ["ItemBriefcase100oz",2];
    
    
      _this addbackpackCargoGlobal ["DZ_largeGunBag_EP1",4];
      _this setPos [8849.72,12503.8,0.014];
    };
    //AI CONSTRUCTION CRATE
    _vehicle_103773 = objNull;
    if (true) then
    {
      _this = createVehicle ["USSpecialWeapons", [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 ["MotarBucket",20];
      _this addmagazineCargoGlobal ["ItemFuelPump",1];
      _this addmagazineCargoGlobal ["ItemVault",1];
      _this addmagazineCargoGlobal ["ItemComboLock",2];
      _this addmagazineCargoGlobal ["30m_plot-kit",1];
    
      _this addbackpackCargoGlobal ["DZ_largeGunBag_EP1",2];
      _this setPos [8895.92,12607.3,0.338];
    };
    };
    
  2. Hey, 

     

    i have recently added the deployable bike>gyro on my server however when players go to use their new created vehicles they are instantly killed...

     

    ive looked around and i believe its due to the server_cleanup.fsm

     

    i think this is the code that is responsible however i am unsure of what i need to change to make this problem stop

         

     name = "group_cleanup";

          init = /*%FSM<STATEINIT""">*/"//Check for hackers" \n
           " {" \n
           " if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x)  && !((typeOf vehicle _x) in DZE_safeVehicle)) then {" \n
           " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n
           " (vehicle _x) setDamage 1;" \n
           " _x setDamage 1;" \n
           " };" \n
           " } forEach allUnits;"/*%FSM</STATEINIT""">*/;
          precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
          class Links
          {
            /*%FSM<LINK "true">*/
            class true
            {
              priority = 0.000000;
              to="general_cleanup";
              precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
              condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
              action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
            };
     

     

     
    if anyone could help me out that would be great
     
    EDIT:: i forgot to mention im not running sarge or dazi
     
    thanks
×
×
  • Create New...