Added escort briefing logic.

This commit is contained in:
FlightControl
2016-04-03 10:15:48 +02:00
parent da0e6a393c
commit 7ed66f05a6
4 changed files with 492 additions and 131 deletions

View File

@@ -207,6 +207,22 @@ function GROUP:GetUnit( UnitNumber )
return UNIT:New( self.DCSGroup:getUnit( UnitNumber ) )
end
--- Returns the category name of the group.
-- @param #GROUP self
-- @return #string Category name = Helicopter, Airplane, Ground Unit, Ship
function GROUP:GetCategoryName()
self:F( self.GroupName )
local CategoryNames = {
[Group.Category.AIRPLANE] = "Airplane",
[Group.Category.HELICOPTER] = "Helicopter",
[Group.Category.GROUND] = "Ground Unit",
[Group.Category.SHIP] = "Ship",
}
return CategoryNames[self.DCSGroup:getCategory()]
end
-- Is Functions
--- Returns if the group is of an air category.