-- A lot of fixes to the new Cargo handling model. Now also TASK_CARGO_TRANSPORT is working.

This commit is contained in:
FlightControl_Master
2018-03-29 12:00:11 +02:00
parent b29ce9b45e
commit c37560275e
2 changed files with 152 additions and 64 deletions

View File

@@ -531,16 +531,16 @@ function UNIT:GetFuel()
return nil
end
--- Returns the UNIT in a UNIT list of one element.
--- Returns a list of one @{Unit}.
-- @param #UNIT self
-- @return #list<Wrapper.Unit#UNIT> The UNITs wrappers.
-- @return #list<Wrapper.Unit#UNIT> A list of one @{Unit}.
function UNIT:GetUnits()
self:F2( { self.UnitName } )
local DCSUnit = self:GetDCSObject()
local Units = {}
if DCSUnit then
local DCSUnits = DCSUnit:getUnits()
local Units = {}
Units[1] = UNIT:Find( DCSUnit )
self:T3( Units )
return Units