Finish Cargo/AI_Cargo_Helicopter

This commit is contained in:
FlightControl_Master
2018-05-19 06:12:37 +02:00
parent d07d063265
commit d05973f487
3 changed files with 43 additions and 18 deletions

View File

@@ -352,6 +352,17 @@ do -- CARGO
return self.Name
end
--- Get the current active object representing or being the Cargo.
-- @param #CARGO self
-- @return Wrapper.Positionable#POSITIONABLE The object representing or being the Cargo.
function CARGO:GetObject()
if self:IsLoaded() then
return self.CargoCarrier
else
return self.CargoObject
end
end
--- Get the object name of the Cargo.
-- @param #CARGO self
-- @return #string The object name of the Cargo.