This commit is contained in:
Frank
2020-03-10 00:44:50 +01:00
parent 781ebc7a42
commit a477fc78bc
6 changed files with 196 additions and 78 deletions
+14
View File
@@ -756,6 +756,20 @@ function UNIT:GetDamageRelative()
return 1
end
--- Returns the category of the #UNIT.
-- @param #UNIT self
-- @return #number Unit category.
function UNIT:GetCategory()
self:F3( self.UnitName )
local DCSUnit = self:GetDCSObject()
if DCSUnit then
return DCSUnit:getDesc().category
end
return nil
end
--- Returns the category name of the #UNIT.
-- @param #UNIT self
-- @return #string Category name = Helicopter, Airplane, Ground Unit, Ship