mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Warehouse v0.4.4
- Fixed little bug in warehouse. - Added home event function to cargo airplane. Planes are now going home after job is done. - Added false option for :Destroy() to generate no event. - Added false parameter to respawn function.
This commit is contained in:
@@ -288,6 +288,8 @@ function GROUP:Destroy( GenerateEvent )
|
||||
else
|
||||
self:CreateEventDead( timer.getTime(), UnitData )
|
||||
end
|
||||
elseif GenerateEvent==false then
|
||||
-- Do nothing!
|
||||
else
|
||||
self:CreateEventRemoveUnit( timer.getTime(), UnitData )
|
||||
end
|
||||
@@ -1524,7 +1526,7 @@ function GROUP:RespawnAtCurrentAirbase(SpawnTemplate, Takeoff, Uncontrolled) --
|
||||
SpawnTemplate.uncontrolled=Uncontrolled
|
||||
|
||||
-- Destroy old group.
|
||||
self:Destroy()
|
||||
self:Destroy(false)
|
||||
|
||||
|
||||
--SCHEDULER:New(nil, DATABASE.Spawn, {_DATABASE, SpawnTemplate}, 0.00001)
|
||||
|
||||
Reference in New Issue
Block a user