Got something working with these coordinates

This commit is contained in:
FlightControl
2017-05-20 16:32:56 +02:00
parent 96fdf72400
commit ece08e5e37
5 changed files with 41 additions and 22 deletions

View File

@@ -2217,4 +2217,22 @@ function CONTROLLABLE:WayPointExecute( WayPoint, WaitTime )
return self
end
--- Returns if the Controllable contains AirPlanes.
-- @param #CONTROLLABLE self
-- @return #boolean true if Controllable contains AirPlanes.
function CONTROLLABLE:IsAirPlane()
self:F2()
local DCSObject = self:GetDCSObject()
if DCSObject then
local Category = DCSObject:getCategory()
self:T2( Category )
return Category == Unit.Category.AIRPLANE
end
return nil
end
-- Message APIs