First Version of AI_A2G_DISPATCHER. There are lots of challenges here to overcome. One of the first one is the defense points.

This commit is contained in:
FlightControl
2018-11-02 16:43:06 +01:00
parent c164c0f9e3
commit 3e3dfc83aa
10 changed files with 4767 additions and 692 deletions

View File

@@ -620,6 +620,24 @@ function UNIT:GetLife0()
return 0
end
--- Returns the category of the unit, which is different than the generic category types of objects.
-- @param #UNIT self
-- @return DCS#Unit.Category
function UNIT:GetUnitCategory()
self:F3( self.UnitName )
local DCSUnit = self:GetDCSObject()
if DCSUnit then
local UnitCategory = DCSUnit:getDesc().category
self:T3( UnitCategory )
return UnitCategory
end
return nil
end
--- Returns the category name of the #UNIT.
-- @param #UNIT self
-- @return #string Category name = Helicopter, Airplane, Ground Unit, Ship
@@ -645,6 +663,8 @@ function UNIT:GetCategoryName()
end
--- Returns the Unit's A2G threat level on a scale from 1 to 10 ...
-- The following threat levels are foreseen:
--