- Added rearming zones
- Improved rearming
This commit is contained in:
Frank
2021-09-27 16:11:03 +02:00
parent 994689f05a
commit be0558849c
13 changed files with 823 additions and 200 deletions

View File

@@ -787,6 +787,20 @@ function AIRWING:onafterStatus(From, Event, To)
-- Check Rescue Helo missions.
self:CheckRescuhelo()
----------------
-- Transport ---
----------------
-- Check transport queue.
self:CheckTransportQueue()
--------------
-- Mission ---
--------------
-- Check mission queue.
self:CheckMissionQueue()
-- General info:
if self.verbose>=1 then
@@ -843,36 +857,6 @@ function AIRWING:onafterStatus(From, Event, To)
self:I(self.lid..text)
end
----------------
-- Transport ---
----------------
-- Check if any transports should be cancelled.
--self:_CheckTransports()
-- Get next mission.
local transport=self:_GetNextTransport()
-- Request mission execution.
if transport then
self:TransportRequest(transport)
end
--------------
-- Mission ---
--------------
-- Check if any missions should be cancelled.
self:_CheckMissions()
-- Get next mission.
local mission=self:_GetNextMission()
-- Request mission execution.
if mission then
self:MissionRequest(mission)
end
end
--- Get patrol data.