mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#SRS - Improvements, set also a coordinate
This commit is contained in:
@@ -507,7 +507,7 @@ do
|
||||
-- @field #AWACS
|
||||
AWACS = {
|
||||
ClassName = "AWACS", -- #string
|
||||
version = "0.2.57", -- #string
|
||||
version = "0.2.58", -- #string
|
||||
lid = "", -- #string
|
||||
coalition = coalition.side.BLUE, -- #number
|
||||
coalitiontxt = "blue", -- #string
|
||||
@@ -971,6 +971,7 @@ AWACS.TaskStatus = {
|
||||
-- DONE - (WIP) Reporting
|
||||
-- DONE - Do not report non-airborne groups
|
||||
-- DONE - Added option for helos
|
||||
-- DONE - Added setting a coordinate for SRS
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
-- Constructor
|
||||
@@ -6191,6 +6192,16 @@ function AWACS:onafterStatus(From, Event, To)
|
||||
-- Check on AUFTRAG status for CAP AI
|
||||
if self:Is("Running") and (awacsalive or self.AwacsInZone) then
|
||||
|
||||
|
||||
-- update coord for SRS
|
||||
|
||||
if self.AwacsSRS then
|
||||
self.AwacsSRS:SetCoordinate(self.AwacsFG:GetCoordinate())
|
||||
if self.TacticalSRS then
|
||||
self.TacticalSRS:SetCoordinate(self.AwacsFG:GetCoordinate())
|
||||
end
|
||||
end
|
||||
|
||||
self:_CheckAICAPOnStation()
|
||||
|
||||
self:_CleanUpContacts()
|
||||
|
||||
Reference in New Issue
Block a user