mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
AIRWING
- Fix for missions not being assigned
This commit is contained in:
parent
40c0f69eff
commit
2702d0fc2a
@ -470,7 +470,7 @@ function LEGION:CheckMissionQueue()
|
|||||||
|
|
||||||
-- Check that runway is operational and that carrier is not recovering.
|
-- Check that runway is operational and that carrier is not recovering.
|
||||||
if self:IsAirwing() then
|
if self:IsAirwing() then
|
||||||
if self:IsRunwayOperational() then
|
if self:IsRunwayOperational()==false then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
local airboss=self.airboss --Ops.Airboss#AIRBOSS
|
local airboss=self.airboss --Ops.Airboss#AIRBOSS
|
||||||
|
|||||||
@ -78,6 +78,7 @@ NAVYGROUP = {
|
|||||||
-- @field #number Heading Heading the boat will take in degrees.
|
-- @field #number Heading Heading the boat will take in degrees.
|
||||||
-- @field #boolean Open Currently active.
|
-- @field #boolean Open Currently active.
|
||||||
-- @field #boolean Over This turn is over.
|
-- @field #boolean Over This turn is over.
|
||||||
|
-- @field #boolean Recovery If `true` this is a recovery window. If `false`, this is a launch window. If `nil` this is just a turn into the wind.
|
||||||
|
|
||||||
--- Engage Target.
|
--- Engage Target.
|
||||||
-- @type NAVYGROUP.Target
|
-- @type NAVYGROUP.Target
|
||||||
@ -672,6 +673,36 @@ function NAVYGROUP:IsSteamingIntoWind()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Check if the group is currently recovering aircraft.
|
||||||
|
-- @param #NAVYGROUP self
|
||||||
|
-- @return #boolean If true, group is currently recovering.
|
||||||
|
function NAVYGROUP:IsRecovering()
|
||||||
|
if self.intowind then
|
||||||
|
if self.intowind.Recovery==true then
|
||||||
|
return true
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
--- Check if the group is currently launching aircraft.
|
||||||
|
-- @param #NAVYGROUP self
|
||||||
|
-- @return #boolean If true, group is currently launching.
|
||||||
|
function NAVYGROUP:IsLaunching()
|
||||||
|
if self.intowind then
|
||||||
|
if self.intowind.Recovery==false then
|
||||||
|
return true
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
-- Status
|
-- Status
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user