mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
AI helicopter dispatcher working to load multiple infantry groups !
This commit is contained in:
@@ -840,6 +840,17 @@ do -- Cargo
|
||||
self.__.Cargo = {}
|
||||
end
|
||||
|
||||
--- Is cargo bay empty.
|
||||
-- @param #POSITIONABLE self
|
||||
function POSITIONABLE:IsCargoEmpty()
|
||||
local IsEmpty = true
|
||||
for _, Cargo in pairs( self.__.Cargo ) do
|
||||
IsEmpty = false
|
||||
break
|
||||
end
|
||||
return IsEmpty
|
||||
end
|
||||
|
||||
--- Get cargo item count.
|
||||
-- @param #POSITIONABLE self
|
||||
-- @return Core.Cargo#CARGO Cargo
|
||||
|
||||
Reference in New Issue
Block a user