fix: Wait udløses også når AD stopper vognen i triggeren før markøren (isTargetReached aldrig sand) — 'fremme' = markør nået, inden for AD's trigger-afstand, eller AD tipper (v1.11.12.0)

This commit is contained in:
2026-09-23 03:06:33 +02:00
parent 0c6ea21829
commit 827010ca99
3 changed files with 41 additions and 2 deletions
+12
View File
@@ -771,6 +771,18 @@ e5Food[HAY] = 21000
check("E5 halmlager tommere end truget -> halm", manager:getNextPickup(e5Driver, false), 21)
g_currentMission.animalFoodSystem = nil
-- W13: AD stopper vognen i triggeren FØR markøren (isTargetReached=false) — Wait udløses alligevel
-- når vognen er inden for AD's trigger-afstand til aflæsningsstedet
buildWaitWorld()
local vn, tn = makeUnloadingVehicle("Fastrac Før markør", 581, 5000, 35000)
vn.targetReached = false
FS25_AutoDrive.AutoDrive.getDistanceToUnloadPosition = function() return 8.6 end
FS25_AutoDrive.AutoDrive.getMaxTriggerDistance = function() return 15 end
UnloadTask.update(tn, 16)
check("W13 Wait selv om markøren ikke er nået", tn.destinationID, 40)
FS25_AutoDrive.AutoDrive.getDistanceToUnloadPosition = nil
FS25_AutoDrive.AutoDrive.getMaxTriggerDistance = nil
-- ==== I: run-integration — ingredienser fra run i stedet for multi-valg; Wait-pulje pr. run ====
-- I1: traktor i et run med ÉN valgt vare i AD får alligevel behovsstyring (run'ets liste)
local runDriver = buildCowWorld()