mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Got something working with these coordinates
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user