New ESCORT class, first version ...

This class does now detection reporting to the main client group.
This commit is contained in:
FlightControl
2016-03-19 01:45:15 +01:00
parent 6dc1b1a810
commit 11c7cea1de
7 changed files with 149 additions and 2 deletions

View File

@@ -9,6 +9,13 @@ Include.File( "Message" )
-- @type
UNIT = {
ClassName="UNIT",
CategoryName = {
[Unit.Category.AIRPLANE] = "Airplane",
[Unit.Category.HELICOPTER] = "Helicoper",
[Unit.Category.GROUND_UNIT] = "Ground Unit",
[Unit.Category.SHIP] = "Ship",
[Unit.Category.STRUCTURE] = "Structure",
}
}
function UNIT:New( DCSUnit )
@@ -112,3 +119,7 @@ function UNIT:OtherUnitInRadius( AwaitUnit, Radius )
return false
end
function UNIT:GetCategoryName()
return self.CategoryName[ self.DCSUnit:getDesc().category ]
end