mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 17:07:54 +00:00
Update Warehouse.lua
This commit is contained in:
@@ -4960,16 +4960,11 @@ end
|
|||||||
-- @param #string From From state.
|
-- @param #string From From state.
|
||||||
-- @param #string Event Event.
|
-- @param #string Event Event.
|
||||||
-- @param #string To To state.
|
-- @param #string To To state.
|
||||||
-- @param #number CountryID The country ID (determines also the coaliton) of the respawned warehouse.
|
function WAREHOUSE:onafterRespawn(From, Event, To)
|
||||||
function WAREHOUSE:onafterRespawn(From, Event, To, CountryID)
|
|
||||||
|
|
||||||
-- Info message.
|
-- Info message.
|
||||||
local text=string.format("Respawning warehouse %s", self.alias)
|
local text=string.format("Respawning warehouse %s", self.alias)
|
||||||
self:_InfoMessage(text)
|
self:_InfoMessage(text)
|
||||||
|
|
||||||
if self.warehouse and self.warehouse:IsAlive() then
|
|
||||||
self.warehouse:Destroy()
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Respawn warehouse.
|
-- Respawn warehouse.
|
||||||
self.warehouse:ReSpawn()
|
self.warehouse:ReSpawn()
|
||||||
|
|||||||
Reference in New Issue
Block a user