mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-17 20:56:08 +00:00
AUFTRAG
This commit is contained in:
@@ -2197,6 +2197,7 @@ function AUFTRAG:NewFREIGHTTRANSPORT(StaticCargo, Destination)
|
|||||||
|
|
||||||
mission.DCStask.params.groupId=StaticCargo:GetID()
|
mission.DCStask.params.groupId=StaticCargo:GetID()
|
||||||
mission.DCStask.params.cargo=StaticCargo
|
mission.DCStask.params.cargo=StaticCargo
|
||||||
|
mission.DCStask.params.destination=Destination
|
||||||
|
|
||||||
return mission
|
return mission
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -6153,9 +6153,24 @@ function OPSGROUP:RouteToMission(mission, delay)
|
|||||||
|
|
||||||
elseif mission.type==AUFTRAG.Type.FREIGHTTRANSPORT then
|
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.
|
-- Refresh DCS task with the known controllable.
|
||||||
mission.DCStask=mission:GetDCSMissionTask(self.group)
|
mission.DCStask=mission:GetDCSMissionTask(self.group)
|
||||||
|
|
||||||
|
mission.DCStask.params.destination=destination
|
||||||
|
mission.DCStask.params.cargo=cargo
|
||||||
|
|
||||||
elseif mission.type==AUFTRAG.Type.ARTY then
|
elseif mission.type==AUFTRAG.Type.ARTY then
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user