mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update RAT.lua
This commit is contained in:
parent
2205100942
commit
82f4c9d526
@ -2349,6 +2349,9 @@ function RAT:_Respawn(index, lastpos, delay)
|
||||
end
|
||||
end
|
||||
|
||||
flightgroup:Despawn(0, true)
|
||||
flightgroup:Stop()
|
||||
|
||||
local _departure=nil
|
||||
local _destination=nil
|
||||
local _takeoff=nil
|
||||
@ -4121,12 +4124,16 @@ function RAT:_OnEngineShutdown(EventData)
|
||||
local idx=self:GetSpawnIndexFromGroup(SpawnGroup)
|
||||
local coord=SpawnGroup:GetCoordinate()
|
||||
self:_Respawn(idx, coord, 3)
|
||||
|
||||
else
|
||||
|
||||
-- Despawn group.
|
||||
text="Event: Group "..SpawnGroup:GetName().." will be destroyed now."
|
||||
self:T(RAT.id..text)
|
||||
self:_Despawn(SpawnGroup)
|
||||
|
||||
end
|
||||
|
||||
-- Despawn group.
|
||||
text="Event: Group "..SpawnGroup:GetName().." will be destroyed now."
|
||||
self:T(RAT.id..text)
|
||||
self:_Despawn(SpawnGroup)
|
||||
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user