#OpsGroup - fix holding condition for FG at holding coordinate

This commit is contained in:
Applevangelist
2024-12-13 12:07:31 +01:00
parent ea55e90e62
commit 4fb2ad88bc
3 changed files with 21 additions and 1 deletions

View File

@@ -1277,6 +1277,25 @@ function FLIGHTGROUP:Status()
end
end
--- check if we need to end holding
--self:T(self.lid.."Checking if we are holding at a holding point...")
if mission and mission.missionHoldingCoord and self.isHoldingAtHoldingPoint == true then
self:T(self.lid.."...yes")
if mission:IsReadyToPush() then
--self:T(self.lid.."Ready to push -> YES")
-- move flag to 1
self.flaghold:Set(1)
-- Not waiting any more.
self.Twaiting=nil
self.dTwait=nil
self.isHoldingAtHoldingPoint = false
--else
--self:T(self.lid.."Ready to push -> NO!")
end
--else
--self:T(self.lid.."...no")
end
-- If mission, check if DCS task needs to be updated.
if mission and mission.updateDCSTask then