mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Develop (#1874)
* #FG * make us AB the default * OPS **CHIEF** - Fixed bugs of polygon opszones - Added option to use CAPTUREZONE auftrag for opszones **OPSZONE** - Fixed bug when marker off **ZONE_POLYGON_BASE** - Added `GetRadius()` function **LEGION** - Improved Reinforcement * AWACS -correct error in SetAwacsDetails (#1873) Corrected setting of Angels Co-authored-by: Frank <frank@inter-zone.de>
This commit is contained in:
@@ -5067,6 +5067,24 @@ function OPSGROUP:GetMissionByID(id)
|
||||
return nil
|
||||
end
|
||||
|
||||
--- Check if a given mission is already in the queue.
|
||||
-- @param #OPSGROUP self
|
||||
-- @param Ops.Auftrag#AUFTRAG Mission the mission to check
|
||||
-- @return #boolean If `true`, the mission is in the queue.
|
||||
function OPSGROUP:IsMissionInQueue(Mission)
|
||||
|
||||
for _,_mission in pairs(self.missionqueue) do
|
||||
local mission=_mission --Ops.Auftrag#AUFTRAG
|
||||
|
||||
if mission.auftragsnummer==Mission.auftragsnummer then
|
||||
return true
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
--- Get mission by its task id.
|
||||
-- @param #OPSGROUP self
|
||||
-- @param #number taskid The id of the (waypoint) task of the mission.
|
||||
|
||||
Reference in New Issue
Block a user