* Force LoadingDone, UnloadingDone since changes in OPSTRANSPORT
This commit is contained in:
Applevangelist 2023-09-09 13:09:20 +02:00
parent 515764bb88
commit ab1e3e6c60

View File

@ -22,7 +22,7 @@
-- === -- ===
-- --
-- ### Author: **Applevangelist** -- ### Author: **Applevangelist**
-- Last Update July 2023 -- Last Update Sept 2023
-- --
-- === -- ===
-- @module Functional.AICSAR -- @module Functional.AICSAR
@ -191,7 +191,7 @@
-- @field #AICSAR -- @field #AICSAR
AICSAR = { AICSAR = {
ClassName = "AICSAR", ClassName = "AICSAR",
version = "0.1.15", version = "0.1.16",
lid = "", lid = "",
coalition = coalition.side.BLUE, coalition = coalition.side.BLUE,
template = "", template = "",
@ -889,7 +889,7 @@ function AICSAR:_InitMission(Pilot,Index)
-- Cargo transport assignment. -- Cargo transport assignment.
local opstransport=OPSTRANSPORT:New(Pilot, pickupzone, self.farpzone) local opstransport=OPSTRANSPORT:New(Pilot, pickupzone, self.farpzone)
--opstransport:SetVerbosity(3)
local helo = self:_GetFlight() local helo = self:_GetFlight()
-- inject reservation -- inject reservation
@ -915,8 +915,9 @@ function AICSAR:_InitMission(Pilot,Index)
self:__PilotUnloaded(2,Helo,OpsGroup) self:__PilotUnloaded(2,Helo,OpsGroup)
end end
function helo:OnAfterLoadingDone(From,Event,To) function helo:OnAfterLoading(From,Event,To)
AICPickedUp(helo,helo:GetCargoGroups(),Index) AICPickedUp(helo,helo:GetCargoGroups(),Index)
helo:__LoadingDone(5)
end end
function helo:OnAfterDead(From,Event,To) function helo:OnAfterDead(From,Event,To)
@ -925,6 +926,7 @@ function AICSAR:_InitMission(Pilot,Index)
function helo:OnAfterUnloaded(From,Event,To,OpsGroupCargo) function helo:OnAfterUnloaded(From,Event,To,OpsGroupCargo)
AICHeloUnloaded(helo,OpsGroupCargo) AICHeloUnloaded(helo,OpsGroupCargo)
helo:__UnloadingDone(5)
end end
self.helos[Index] = helo self.helos[Index] = helo