**FLIGHTCONTROL**
- Less output to dcs log file

**FLIGHTGROUP**
- Added function :SetReadyForTakeoff
This commit is contained in:
Frank
2022-05-21 22:25:08 +02:00
parent 15994e7be8
commit dd81823e29
4 changed files with 93 additions and 133 deletions

View File

@@ -6311,10 +6311,11 @@ function WAREHOUSE:_RouteAir(aircraft)
self:T2(self.lid..string.format("RouteAir aircraft group %s alive=%s", aircraft:GetName(), tostring(aircraft:IsAlive())))
-- Give start command to activate uncontrolled aircraft within the next 60 seconds.
if not self.flightcontrol then
local starttime=math.random(60)
aircraft:StartUncontrolled(starttime)
if self.flightcontrol then
local fg=FLIGHTGROUP:New(aircraft)
fg:SetReadyForTakeoff(true)
else
aircraft:StartUncontrolled(math.random(60))
end
-- Debug info.