Fixed the landing bug

When using A2A GCICAP, the planes would land, but not dissapear.
This commit is contained in:
FlightControl_Master 2017-07-30 07:31:23 +02:00
parent 3ec783b0e4
commit fdcad2dd93
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
--BASE:TraceClass("AI_A2A_DISPATCHER")
BASE:TraceClass("AI_A2A_GCICAP")
--BASE:TraceClass("AI_A2A_GCICAP")
--- **AI** - The AI_A2A_DISPATCHER creates an automatic A2A defense system based on an EWR network targets and coordinating CAP and GCI.
--
@ -818,6 +818,7 @@ do -- AI_A2A_DISPATCHER
--- @param #AI_A2A_DISPATCHER self
-- @param Core.Event#EVENTDATA EventData
function AI_A2A_DISPATCHER:OnEventLand( EventData )
self:F( "Landed" )
local DefenderUnit = EventData.IniUnit
local Defender = EventData.IniGroup
local Squadron = self:GetSquadronFromDefender( Defender )
@ -2945,6 +2946,12 @@ do
self:__Start( 5 )
self:HandleEvent( EVENTS.Crash, self.OnEventCrashOrDead )
self:HandleEvent( EVENTS.Dead, self.OnEventCrashOrDead )
self:HandleEvent( EVENTS.Land )
self:HandleEvent( EVENTS.EngineShutdown )
return self
end

View File

@ -872,7 +872,7 @@ function EVENT:onEvent( Event )
for EventClass, EventData in pairs( self.Events[Event.id][EventPriority] ) do
if Event.IniObjectCategory ~= Object.Category.STATIC then
--self:E( { "Evaluating: ", EventClass:GetClassNameAndID() } )
self:E( { "Evaluating: ", EventClass:GetClassNameAndID() } )
end
Event.IniGroup = GROUP:FindByName( Event.IniDCSGroupName )