mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
New ESCORT class, first version ...
This class does now detection reporting to the main client group.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user