CHIEF: SetResponseOnTarget
TRANSPORT: improved transfer of loaded cargo
This commit is contained in:
Frank
2022-07-11 23:22:58 +02:00
parent bcb574e618
commit 469cc3d508
8 changed files with 236 additions and 47 deletions

View File

@@ -108,6 +108,15 @@ function FLEET:New(WarehouseName, FleetName)
-- Defaults
self:SetRetreatZones()
-- Turn ship into NAVYGROUP.
if self:IsShip() then
local wh=self.warehouse --Wrapper.Unit#UNIT
local group=wh:GetGroup()
self.warehouseOpsGroup=NAVYGROUP:New(group) --Ops.NavyGroup#NAVYGROUP
self.warehouseOpsElement=self.warehouseOpsGroup:GetElementByName(wh:GetName())
end
-- Add FSM transitions.
-- From State --> Event --> To State