mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Escort menus are deleted once the escort crashes.
This commit is contained in:
parent
115743263b
commit
5a97f68778
@ -364,6 +364,17 @@ function AI_ESCORT:onafterStart( EscortGroupSet )
|
||||
self:_InitEscortRoute( EscortGroup )
|
||||
|
||||
self:SetFlightModeFormation( EscortGroup )
|
||||
|
||||
--- @param #AI_ESCORT self
|
||||
-- @param Core.Event#EVENTDATA EventData
|
||||
function EscortGroup:OnEventDeadOrCrash( EventData )
|
||||
self:F( { "EventDead", EventData } )
|
||||
self.EscortMenu:Remove()
|
||||
end
|
||||
|
||||
EscortGroup:HandleEvent( EVENTS.Dead, EscortGroup.OnEventDeadOrCrash )
|
||||
EscortGroup:HandleEvent( EVENTS.Crash, EscortGroup.OnEventDeadOrCrash )
|
||||
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user