From 52986ce8deb7238ff5a7cf94ce034b71601c7f87 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 13 Feb 2026 12:01:34 +0100 Subject: [PATCH] AUFTRAG --- Moose Development/Moose/Ops/Auftrag.lua | 1 + Moose Development/Moose/Ops/OpsGroup.lua | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/Auftrag.lua b/Moose Development/Moose/Ops/Auftrag.lua index 04978cb6e..c284b1ffe 100644 --- a/Moose Development/Moose/Ops/Auftrag.lua +++ b/Moose Development/Moose/Ops/Auftrag.lua @@ -2197,6 +2197,7 @@ function AUFTRAG:NewFREIGHTTRANSPORT(StaticCargo, Destination) mission.DCStask.params.groupId=StaticCargo:GetID() mission.DCStask.params.cargo=StaticCargo + mission.DCStask.params.destination=Destination return mission end diff --git a/Moose Development/Moose/Ops/OpsGroup.lua b/Moose Development/Moose/Ops/OpsGroup.lua index a2457a00f..50c69626e 100644 --- a/Moose Development/Moose/Ops/OpsGroup.lua +++ b/Moose Development/Moose/Ops/OpsGroup.lua @@ -6153,9 +6153,24 @@ function OPSGROUP:RouteToMission(mission, delay) elseif mission.type==AUFTRAG.Type.FREIGHTTRANSPORT then + --- + -- FREIGHTTRANSPORT + --- + + local destination=mission.DCStask.params.destination + local cargo=mission.DCStask.params.cargo + + -- Set the waypoint coordinate directly above the airbase. + -- The only way to ensure the cargo is delivered there, because when the task is executed, the cargo is delivered to the closest airbase. + -- Hopefully, ED will change the behaviour of this task but at the moment, it is what it is. + waypointcoord=destination:GetCoordinate() + -- Refresh DCS task with the known controllable. mission.DCStask=mission:GetDCSMissionTask(self.group) - + + mission.DCStask.params.destination=destination + mission.DCStask.params.cargo=cargo + elseif mission.type==AUFTRAG.Type.ARTY then ---