Jump to content
  • Topics

  • Posts

    • look into event handler "HandleDamage" and "inArea" command   using the "HandleDamage" event handler by returning a false or is it true?, you can disable damage, and you set the logics like when the player enters the area and in 10 seconds the player's damage gets disabled, you can use setVariables to achieve this
        player addEventHandler ["HandleDamage",{      _player =_this select 0;      _yourPos = getMarkerPos "test"; _r = false; // look into 'inArea ' command instead: https://community.bistudio.com/wiki/inArea // this is for a test compares the distance between player and a marker named 'test'      if (_player distance _yourPos <= 250) then { _r = false; // if your character is taking damage when close to the marker, try setting this to true and the below one to false, I kinda forgot whether its true/false to disable damage } else { _r = true; }; _r }];  
    • So here's a weird one:

      I have a custom function setup in my scenario which: Spawns in an IFV Spawns a group to crew it Spawns a group to ride in the back Tells both groups to drive to a marker and eject the infantry Tells both groups to attack an area with BIS_fnc_taskAttack
      It works as expected, in fact, quite well.

      There's just 1 problem - every 2nd time I spawn this function, the infantry in the back dismount as soon as they spawn in and hoof it all the way to the marker. I've tested multiple times and it's consistent. For example, if I spawn this function 8 times, the 1st, 3rd, 5th, and 7th time will work perfectly and the 2nd, 4th, 6th, and 8th will dismount the infantry as soon as they spawn. This occurs in both a singleplayer and multiplayer (LAN) environment. It's too consistent to be a random error - it's clearly something I've missed in how my function is set up but I've had no luck finding a lead for about 5 days now.

      Here's the function (it is defined within cfgfunctions.hpp and works without spitting out errors when I spawn it): if !(isServer) exitWith {}; _unitClass = "Unknown"; //DEFINE GROUPS _bIfvGroup = ["B_crew_F","B_crew_F"]; _bIfvInfGroup = ["B_soldier_F","B_soldier_F","B_Patrol_Soldier_MG_F","B_engineer_F","B_soldier_F","B_recon_F"]; //SPAWN IFV _bNewVehicleIfv = createVehicle ["B_APC_Wheeled_01_cannon_F", [27635,23853,0], [], 0, "NONE"]; _bNewVehicleIfv setDir 227; _bNewVehicleIfv lockturret [[0,0],true]; clearWeaponCargoGlobal _bNewVehicleIfv; clearMagazineCargoGlobal _bNewVehicleIfv; clearBackpackCargoGlobal _bNewVehicleIfv; clearItemCargoGlobal _bNewVehicleIfv; //SPAWN IFV CREW newBluforIfvCrew = createGroup [west,true]; { _newBluforCrewUnit = _x createUnit [getMarkerPos "bAiSpawn02",newBluforIfvCrew,"newBluforCrewUnit=this"]; { [newBluforCrewUnit] call LIZ_fnc_bCrewLoadout; if alive driver _bNewVehicleIfv then {newBluforCrewUnit moveInGunner _bNewVehicleIfv;} else {newBluforCrewUnit moveInDriver _bNewVehicleIfv;}; newBluforCrewUnit disableAI "FSM"; newBluforCrewUnit allowFleeing 0; newBluforIfvCrew setSpeedMode "FULL"; } foreach units (newBluforIfvCrew); } foreach _bIfvGroup; _bNewVehicleIfv lockDriver true; sleep 2; //SPAWN IFV INFANTRY newBluforIfvInfGroup = createGroup [west,true]; { _newBluforMechUnit = _x createUnit [getMarkerPos "bAiSpawn02",newBluforIfvInfGroup,"newBluforMechUnit=this"]; { if (typeOf newBluforMechUnit == "B_soldier_F") then {_unitClass = "Rifleman";}; if (typeOf newBluforMechUnit == "B_Patrol_Soldier_MG_F") then {_unitClass = "MG";}; if (typeOf newBluforMechUnit == "B_engineer_F") then {_unitClass = "AT";}; if (typeOf newBluforMechUnit == "B_recon_F") then {_unitClass = "Recon";}; switch (_unitClass) do { case "Rifleman": { [newBluforMechUnit] spawn LIZ_fnc_bRifleLoadout; }; case "MG": { [newBluforMechUnit] spawn LIZ_fnc_bMgLoadout; }; case "AT": { [newBluforMechUnit] spawn LIZ_fnc_bAtLoadout; }; case "Recon": { [newBluforMechUnit] spawn LIZ_fnc_bReconLoadout; }; }; newBluforMechUnit moveInCargo _bNewVehicleIfv; newBluforIfvInfGroup setSpeedMode "FULL"; } foreach units (newBluforIfvInfGroup); } foreach _bIfvInfGroup; sleep 1; //RANDOM OBJECTIVE MARKER _randomDismountMarker = ["dismountMarker01","dismountMarker02","dismountMarker03","dismountMarker04"] call BIS_fnc_selectRandom; _randomObjMarker = ["combatMarker01","combatMarker02","combatMarker03"] call BIS_fnc_selectRandom; //SEND ORDERS FOR IFV CREW _wp1 = newBluforIfvCrew addWaypoint [getMarkerPos _randomDismountMarker, 0]; _wp1 setWaypointType "TR UNLOAD"; _wp1 setWaypointSpeed "FULL"; //SEND ORDERS FOR INFANTRY GROUP _wp2 = newBluforIfvInfGroup addWaypoint [getMarkerPos _randomDismountMarker, 0]; _wp2 setWaypointType "GETOUT"; newBluforIfvInfGroup setBehaviourStrong "AWARE"; newBluforIfvInfGroup setSpeedMode "FULL"; [newBluforIfvCrew, 0] synchronizeWaypoint [ [newBluforIfvInfGroup, 0] ]; //IFV LEAVES INFANTRY ATTACKS waitUntil {({_x in _bNewVehicleIfv} count (units newBluforIfvInfGroup)) < 6}; [newBluforIfvInfGroup] spawn LIZ_fnc_eject; waitUntil {({_x in _bNewVehicleIfv} count (units newBluforIfvInfGroup)) < 1}; sleep 2; [newBluforIfvInfGroup, getMarkerPos _randomObjMarker] call BIS_fnc_taskAttack; [newBluforIfvCrew, getMarkerPos _randomObjMarker] call BIS_fnc_taskAttack; Currently this function is triggered by me using a Radio Trigger for testing - 0 = [] spawn LIZ_fnc_bIfvSpawn. I also considered that my other function LIZ_fnc_eject (which ejects the infantry from the IFV) might have something to do with it, so here it is: _infantry = _this select 0; { unassignVehicle (_x); (_x) action ["EJECT", vehicle _x]; sleep 0.2; } foreach units (_infantry); sleep 3; If you can see my error, or if I've unwittingly left out some key piece of information, please let me know.

      Help me BI forums, you're my only hope.
    • https://forums.bohemia.net/forums/topic/232367-arma-3-addon-request-thread/
    • Badass,  and stunning quality to top!
    • Bought the dedicated server, downloaded the mods i needed, setup my config (which is definitely the problem), applied my settings, and my server throwing these error messages.    Modded scenarios are unavailable to select at this time, because the Workshop API returned an error:   data.assets['5D5F6E70B7931102'] should match pattern "^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$"   Please check your server configuration or try again later.   How can i fix this?  I have no idea what i am doing, pls help.  config provided below.      {
          "dedicatedServerId": "nitrado_<cid>",
          "region": "EU-FFM",
          "game": {
              "name": "NA - USAvRUS PVP ",
              "password": "",
              "passwordAdmin": "",
              "scenarioId": "{BD628B0418251A4B}Missions/TU_Campaign_NorthWest.conf",
              "maxPlayers": 32,
              "visible": true,
              "gameProperties": {
                  "serverMaxViewDistance": "1600",
                  "networkViewDistance": "500",
                  "serverMinGrassDistance": "50",
                  "disableThirdPerson": true,
                  "battlEye": true
              },
              "mods": [
                 {
                      "modId": "5D5F6E70B7931102",
                      "name": "ConflictVariantsRHS",
                      "version": ""
                  }, 
                  {
                      "modId": "5C9AD9EF76F6B5EA",
                      "name": "ZU-23",
                      "version": ""
                  },
                  {
                      "modId": "60AABE9BEC5FD178",
                      "name": "Mk19VehicleMountedonM1025",
                      "version": ""
                  },
                  {
                      "modId": "5DA56937FE61511F",
                      "name": "CavalryHillScenery",
                      "version": ""
                  },
                  {
                      "modId": "595F2BF2F44836FB",
                      "name": "RHS-StatusQuo",
                      "version": ""
                  },
                  {
                      "modId": "60E573C9B04CC408",
                      "name": "ACEBackblast",
                      "version": ""
                  },
                  {
                      "modId": "5DBD560C5148E1DA",
                      "name": "ACECarrying",
                      "version": ""
                  },
                  {
                      "modId": "60C53A9372ED3964",
                      "name": "ACECompass",
                      "version": ""
                  },
                  {
                      "modId": "60C4CE4888FF4621",
                      "name": "ACECore",
                      "version": ""
                  },
                  {
                      "modId": "606C369BAC3F6CC3",
                      "name": "ACEFinger",
                      "version": ""
                  },
                  {
                      "modId": "60C4C12DAE90727B",
                      "name": "ACEMedical",
                      "version": ""
                  },
                  {
                      "modId": "60EAEA0389DB3CC2",
                      "name": "ACETrenches",
                      "version": ""
                  },
                  {
                      "modId": "614B1E9AE673AE5F",
                      "name": "AIOptimizations",
                      "version": ""
                  },
                  {
                      "modId": "606B100247F5C709",
                      "name": "BaconLoadoutEditor",
                      "version": ""
                  },
                  {
                      "modId": "E4F1725CF7FD63A",
                      "name": "BaconsM249pkmrpkrails",
                      "version": ""
                  },
                  {
                      "modId": "5EF5347644A2C501",
                      "name": "BaconWeather",
                      "version": ""
                  },
                  {
                      "modId": "60A84677938AF7D8",
                      "name": "BetterSupplyTrucks",
                      "version": ""
                  },
                  {
                      "modId": "5F1EE615E7AE3106",
                      "name": "BGONE",
                      "version": ""
                  },
                  {
                      "modId": "5C9758250C8C56F1",
                      "name": "BonActionAnimations",
                      "version": ""
                  },
                  {
                      "modId": "612F4C04CFF9B1C4",
                      "name": "BradleyFix",
                      "version": ""
                  },
                  {
                      "modId": "5D071A427403AB2C",
                      "name": "ChatMessageRoles",
                      "version": ""
                  },
                  {
                      "modId": "60D23A92813D0C8E",
                      "name": "CountryFlagPatches",
                      "version": ""
                  },
                  {
                      "modId": "613D4634CBB276B2",
                      "name": "DisableArmaVision",
                      "version": ""
                  },
                  {
                      "modId": "5F2944B7474F043F",
                      "name": "DisableGameMasterBudgets",
                      "version": ""
                  },
                  {
                      "modId": "60B2AD8092C4C94A",
                      "name": "DisableGMDynamicSimulation",
                      "version": ""
                  },
                  {
                      "modId": "612F512CD4CB21D5",
                      "name": "Earplugs",
                      "version": ""
                  },
                  {
                      "modId": "60DF519BEC7A5649",
                      "name": "ForceGarbageCollect",
                      "version": ""
                  },
                  {
                      "modId": "607D472207F3EE65",
                      "name": "FPTR",
                      "version": ""
                  },
                  {
                      "modId": "5994AD5A9F33BE57",
                      "name": "GameMasterFX",
                      "version": ""
                  },
                  {
                      "modId": "5F0913BAAC69ABF5",
                      "name": "GarbageCollectorPatch",
                      "version": ""
                  },
                  {
                      "modId": "5C73156675E11A0F",
                      "name": "GMPersistentLoadouts",
                      "version": ""
                  },
                  {
                      "modId": "611772813EE29E17",
                      "name": "HDRFix",
                      "version": ""
                  },
                  {
                      "modId": "5C721177A220B42F",
                      "name": "JointLightTacticalVehicle",
                      "version": ""
                  },
                  {
                      "modId": "607CE45D27490DBF",
                      "name": "JTF2",
                      "version": ""
                  },
                  {
                      "modId": "6088A3044B7ECBFD",
                      "name": "KeepGunWhenUncon",
                      "version": ""
                  },
                  {
                      "modId": "5E193315C8E82019",
                      "name": "M2BradleyFightingVehicle",
                      "version": ""
                  },
                  {
                      "modId": "5AB890B71D748750",
                      "name": "M4A1BlockIIandURG-I",
                      "version": ""
                  },
                  {
                      "modId": "5E04C10D824A8990",
                      "name": "M60E4",
                      "version": ""
                  },
                  {
                      "modId": "5CA125536EE7430A",
                      "name": "M110DMR",
                      "version": ""
                  },
                  {
                      "modId": "5AF6E0F075D79473",
                      "name": "M249ScopeRails",
                      "version": ""
                  },
                  {
                      "modId": "609E8CAD8A403EA6",
                      "name": "MapMarkerMenuFix",
                      "version": ""
                  },
                  {
                      "modId": "60DB5355A8E3C229",
                      "name": "NSVUAZ",
                      "version": ""
                  },
                  {
                      "modId": "60781962C0AAE954",
                      "name": "PIPCQB",
                      "version": ""
                  },
                  {
                      "modId": "5E92F5A4A1B75A75",
                      "name": "PlayerMapMarker",
                      "version": ""
                  },
                  {
                      "modId": "611773E9DBCA20AC",
                      "name": "PrefabOptimizations",
                      "version": ""
                  },
                  {
                      "modId": "614627BACB991914",
                      "name": "PrefabOptimizations-Core",
                      "version": ""
                  },
                  {
                      "modId": "6148E5A6D60AA2BA",
                      "name": "PrefabOptimizations-Glass",
                      "version": ""
                  },
                  {
                      "modId": "5AAF6D5352E5FCAB",
                      "name": "ProjectRedline-Core",
                      "version": ""
                  },
                  {
                      "modId": "5ABD0CB57F7E9EB1",
                      "name": "RISLaserAttachments",
                      "version": ""
                  },
                  {
                      "modId": "61267C8E28F30B9B",
                      "name": "SchizoWorkshopPacked",
                      "version": ""
                  },
                  {
                      "modId": "613A878AD341C163",
                      "name": "ScriptOptimizations",
                      "version": ""
                  },
                  {
                      "modId": "5AAAC70D754245DD",
                      "name": "ServerAdminTools",
                      "version": ""
                  },
                  {
                      "modId": "5ED143120C5465BD",
                      "name": "SESOFMagRepack",
                      "version": ""
                  },
                  {
                      "modId": "60EF191B900214C5",
                      "name": "SingleSlotforprimaryweapon",
                      "version": ""
                  },
                  {
                      "modId": "60557550B10EB832",
                      "name": "SlowerStrafe",
                      "version": ""
                  },
                  {
                      "modId": "5E389BB9F58B79A6",
                      "name": "SpaceCore",
                      "version": ""
                  },
                  {
                      "modId": "605F3615AB65443C",
                      "name": "SRSoundMod",
                      "version": ""
                  },
                  {
                      "modId": "59EAA899751805DF",
                      "name": "StunGrenade",
                      "version": ""
                  },
                  {
                      "modId": "5AB301290317994A",
                      "name": "Suppressors",
                      "version": ""
                  },
                  {
                      "modId": "5D550926D43F1409",
                      "name": "TacticalFlava",
                      "version": ""
                  },
                  {
                      "modId": "5EE135CE07217857",
                      "name": "TalkingonRadioBeeps",
                      "version": ""
                  },
                  {
                      "modId": "5F0289EB493E9977",
                      "name": "TeamBalancer",
                      "version": ""
                  },
                  {
                      "modId": "6134A0CAC07D46C7",
                      "name": "TigrNsvFix",
                      "version": ""
                  },
                  {
                      "modId": "611693AF969015D3",
                      "name": "WCS_ArsenalConfig",
                      "version": ""
                  },
                  {
                      "modId": "6148039B7313C031",
                      "name": "WCS_Core",
                      "version": ""
                  },
                  {
                      "modId": "61203E80718BF3A6",
                      "name": "WCS_DefaultLoadout",
                      "version": ""
                  },
                  {
                      "modId": "61557578724DBE60",
                      "name": "WCS_EasternEurope",
                      "version": ""
                  },
                  {
                      "modId": "6148289172F86E7A",
                      "name": "WCS_Everon",
                      "version": ""
                  },
                  {
                      "modId": "615AF173B3325C2F",
                      "name": "WCS_FIA",
                      "version": ""
                  },
                  {
                      "modId": "612851D73DF01668",
                      "name": "WCS_FlipPush",
                      "version": ""
                  },
                  {
                      "modId": "6146FAED5AAD7C55",
                      "name": "WCS_Helicopters",
                      "version": ""
                  },
                  {
                      "modId": "611E89E87E9048DA",
                      "name": "WCS_IGLA",
                      "version": ""
                  },
                  {
                      "modId": "614D1A3874A23AD9",
                      "name": "WCS_Interface",
                      "version": ""
                  },
                  {
                      "modId": "615806DC6C57AF02",
                      "name": "WCS_NATO",
                      "version": ""
                  },
                  {
                      "modId": "611E57E8A0B2E4F9",
                      "name": "WCS_Patches",
                      "version": ""
                  },
                  {
                      "modId": "615818DA7C0343FD",
                      "name": "WCS_RU",
                      "version": ""
                  },
                  {
                      "modId": "614C00DA7F8765F6",
                      "name": "WCS_SpawnProtection",
                      "version": ""
                  },
                  {
                      "modId": "615A80027C5C9170",
                      "name": "WCS_Vehicles",
                      "version": ""
                  },
                  {
                      "modId": "5965550F24A0C152",
                      "name": "WhereAmI",
                      "version": ""
                  },
                  {
                      "modId": "5D84C738432BFE6A",
                      "name": "WolfsBuildingPack",
                      "version": ""
                  },
                  {
                      "modId": "5D0551624969C92E",
                      "name": "ZeliksCharacter",
                      "version": ""
                  },
                  {
                      "modId": "C9AD9EF76F6B5EA",
                      "name": "ZU-23",
                      "version": ""
                  }],
              "supportedPlatforms": [
                  "PLATFORM_PC",
                  "PLATFORM_XBL"
              ]
          }
      }
×