Jump to content


  • Content Count

  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About pcc

  • Rank

Recent Profile Visitors

658 profile views
  1. I'm experiencing this problem too in warfare. It uses move command but still the same symptoms described in this thread. At first I thought it was caused by fast travel, but AI driver still get stuck with it disabled.
  2. It appears like warfare fast travel/teleport glitch is the cause. https://forums.bistudio.com/forums/topic/207701-ai-infantry-stuck-walking-backwards-after-fast-travel/ One or several of AI infantry on a team gets stuck walking backwards all the way to back to base and the rest of the team is stuck waiting for those infantry to return to formation. Unfortunately not sure why AI infantry would glitch after relocating in warfare fast travel or using setPos.
  3. For unknown reasons, AI team stop moving to their destinations, whether its capture or recon mission. Sometimes killing their leader will get the team moving again. I've noticed these errors in logs Out of path-planning region for R 1-2-B:8 at 5148.4,6207.8, node type Trying to work around it with selectleader, dofollow, etc, but AI teams still gets stuck for unknown reason.
  4. I'm trying to teleport an entire group including vehicles with { _x setPos ([_destination,50,50 * 1.3] Call GetRandomPosition); } forEach unit _team; but the team's vehicles gets left behind. How to do I teleport their vehicles too within this loop?
  5. This happens with both AI and player team leader. They can't be stopped from this behavior despite ordered to stop, move, regroup, etc. Only change to fast travel are speed variable in Common_GetFastTravelTime.sqf and Client_GetFTTime.sqf, but don't think they're the cause.
  6. Due to AI commander sometimes unable to rebuild destroyed buildings for unknown reason, I'm trying to bypass factory checks entirely for server and client buy units. I managed to enable buy weapons without barracks by removing factory checks from files like Client_UpdateAvailableObjects.sqf and GUI_UpdateOptions.sqf. However, units/vehicles doesn't work.
  7. At the beginning of the warfare game resistance patrol teams are spawned at depot, but only once. I'm want them to spawn repeatedly even after they lose the location to west or east. I've tried adding [Resistance,_location] Spawn BIS_WF_UpdateTownPatrols; in Server_UpdateTownVirtualDefenses.sqf //Reinforce garrison. if (time >= _timeNextUpdate) then { _timeNextUpdate = time + 300; _location SetVariable[Format["%1GarrisonCommand",_sideText],VGCOMMANDREINFORCE]; [Resistance,_location] Spawn BIS_WF_UpdateTownPatrols; }; But they stop spawning after the location is captured by west or east.
  8. Just copy the airport from the warfare mission templates and paste into your mission. But AI won't buy from it. Follow this thread Then do the same for planes. Just need to move them into one of the vehicle factories. You can have the plane spawn at airport with Server_BuyUnits.sqf. I'd just have them spawn in air at base.
  9. In the Server_BuyUnit.sqf, I'm using the following for random soldier types. _unit = Call Compile Format["[%1%2Units] Call BIS_WF_GetRandomElement",_sideText,_factoryName]; But, how do I exclude certain units like pilot and crew? I've tried _unit = Call Compile Format["[%1%2Units] Call BIS_WF_GetRandomElement",_sideText,_factoryName]; while{_unit == "%1CREW" || _unit == "%1PILOT"} do { _unit = Call Compile Format["[%1%2Units] Call BIS_WF_GetRandomElement",_sideText,_factoryName]; }; But pilot and crew still gets picked.
  10. I'm trying to get rid of duplicate weapons detected msgs in warfare. I've tried removeAllItems in the Common_EquipLoadout.sqf, but the error still persists for both west and east factions. Duplicate weapon ItemMap detected for TK_Soldier_EP1 Duplicate weapon ItemCompass detected for TK_Soldier_EP1 Duplicate weapon ItemRadio detected for TK_Soldier_EP1
  11. Everyone has their own and opinion of masterpiece at some point. With or without Vehicle and select 0 it didn't cause the error, its not the main problem here. What's wrong with the syntax? position nearObjects [typeName, radius] https://community.bistudio.com/wiki/nearObjects I'll test with nearestObjects. Edit: same error Bad conversion: array Error in expression <n {sleep 6; {deleteVehicle _x} foreach (nearestObjects [_this, ["CraterLong"], 5> Error position: <nearestObjects [_this, ["CraterLong"], 5> Error 0 elements provided, 3 expected //Client bodies or client/server vehicles. else { if(([_victim] Select 0) isKindOf "Air")then { [_victim] Select 0 spawn {sleep 6; {deleteVehicle _x} foreach (nearestObjects [_this, ["CraterLong"], 50])}; }; [_victim] Select 0 spawn {sleep 12; deleteVehicle _this}; }; Edit: Fixed with getPos using nearObjects.
  12. I'm trying to delete CraterLong objects from aircraft crashes in warfare using Common_UnitKilled.sqf. It works, but it sometimes gives the following error. Bad conversion: array Error in expression <ep 6; {deleteVehicle _x} foreach (_this nearObjects ["CraterLong",25])}; }; Error position: <nearObjects ["CraterLong",25])}; }; Error 0 elements provided, 3 expected } //Client bodies or client/server vehicles. else { if(([Vehicle _victim] Select 0) isKindOf "Air")then { [Vehicle _victim] Select 0 spawn {sleep 6; {deleteVehicle _x} foreach (_this nearObjects ["CraterLong",25])}; }; [_victim] Select 0 spawn {sleep 12; deleteVehicle _this}; };
  13. Works great, but sometimes it gives this error and it happens randomly. String STR_EVAL_TYPENAN not found Error in expression <call BIS_fnc_rotateVector2D; _obj setVectorDirAndUp [_vdir, _vup];> Error position: <setVectorDirAndUp [_vdir, _vup];> Error Type , expected Number File ca\modules\functions\objects\fn_setPitchBank.sqf, line 99
  14. Sorry, my title was confusing, I meant I'm hoping to correct the default game AI dismount behavior via warfare scripts if possible. Maybe the fix has to be done with vehicle cfg, but I can't find the location of the vehicle variables. I also observed that tank crews doesn't dismount like wheeled vehicles. Also, the dismount behavior only happens in groups of more than 1 wheeled vehicle. Maybe tank vehicles have a variable that be used for the wheeled vehicles.
  15. Is there a reason why AI driver/gunner dismounting in a group of more than 1 wheeled vehicles with turrets after engaging hostiles? The crew just goes into harms way, they do it even if vehicles are undamaged.