This commit is contained in:
Frank 2018-09-26 21:40:18 +02:00
parent 7ab14e0bf9
commit a76ea8f393
4 changed files with 5 additions and 2 deletions

View File

@ -261,7 +261,7 @@ function AI_CARGO:onbeforeLoad( Carrier, From, Event, To, PickupZone )
if Carrier_Weight[CarrierUnit] > CargoWeight then --and CargoBayFreeVolume > CargoVolume then
Carrier:RouteStop()
--Cargo:Ungroup()
Cargo:__Board( -LoadDelay, CarrierUnit, 25 )
Cargo:__Board( -LoadDelay, CarrierUnit, 25)
LoadDelay = LoadDelay + Cargo:GetCount() * LoadInterval
self:__Board( LoadDelay, Cargo, CarrierUnit, PickupZone )

View File

@ -472,6 +472,7 @@ do -- CARGO
self.LoadRadius = LoadRadius or 500
self.NearRadius = NearRadius or 25
env.info("FF nearradius = ".. self.NearRadius)
self:SetDeployed( false )

View File

@ -226,6 +226,8 @@ do -- CARGO_UNIT
-- @param #string Event
-- @param #string From
-- @param #string To
-- @param Wrapper.Group#GROUP CargoCarrier
-- @param #number NearRadius
function CARGO_UNIT:onafterBoard( From, Event, To, CargoCarrier, NearRadius, ... )
self:F( { From, Event, To, CargoCarrier, NearRadius } )

View File

@ -3350,7 +3350,7 @@ function WAREHOUSE:onafterRequest(From, Event, To, Request)
local CargoGroups --Core.Set#SET_CARGO
-- Board radius, i.e. when the cargo will begin to board the carrier
local _boardradius=5000
local _boardradius=500
if Request.transporttype==WAREHOUSE.TransportType.AIRPLANE then
_boardradius=5000