- Added enroute task SEAD to escort
This commit is contained in:
Frank
2023-01-21 22:42:57 +01:00
parent d0d21a6b5d
commit a4e52c6c3c
2 changed files with 6 additions and 5 deletions

View File

@@ -2949,6 +2949,9 @@ function LEGION:AssignAssetsForEscort(Cohorts, Assets, NescortMin, NescortMax, M
-- For a SEAD mission, we also adjust the mission task.
if MissionType==AUFTRAG.Type.SEAD then
escort.missionTask=ENUMS.MissionTask.SEAD
-- Add enroute task SEAD.
local DCStask=CONTROLLABLE.EnRouteTaskSEAD(nil)
table.insert(escort.enrouteTasks, DCStask)
end
-- Reserve assts and add to mission.