mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 07:43:07 +00:00
FG
This commit is contained in:
@@ -1085,6 +1085,7 @@ end
|
|||||||
-- @param #table waypoints Table of waypoints.
|
-- @param #table waypoints Table of waypoints.
|
||||||
-- @return #FLIGHTGROUP self
|
-- @return #FLIGHTGROUP self
|
||||||
function FLIGHTGROUP:Route(waypoints)
|
function FLIGHTGROUP:Route(waypoints)
|
||||||
|
|
||||||
if self:IsAlive() then
|
if self:IsAlive() then
|
||||||
|
|
||||||
-- DCS task combo.
|
-- DCS task combo.
|
||||||
@@ -1106,7 +1107,11 @@ function FLIGHTGROUP:Route(waypoints)
|
|||||||
|
|
||||||
-- Set tasks.
|
-- Set tasks.
|
||||||
self:SetTask(TaskCombo)
|
self:SetTask(TaskCombo)
|
||||||
|
|
||||||
|
else
|
||||||
|
self:I(self.lid.."FF ERROR!")
|
||||||
end
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -2233,8 +2233,12 @@ end
|
|||||||
function CONTROLLABLE:TaskRoute( Points )
|
function CONTROLLABLE:TaskRoute( Points )
|
||||||
self:F2( Points )
|
self:F2( Points )
|
||||||
|
|
||||||
local DCSTask
|
local DCSTask = {
|
||||||
DCSTask = { id = 'Mission', params = { route = { points = Points, }, }, }
|
id = 'Mission',
|
||||||
|
params = {
|
||||||
|
route = { points = Points, },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
self:T3( { DCSTask } )
|
self:T3( { DCSTask } )
|
||||||
return DCSTask
|
return DCSTask
|
||||||
|
|||||||
Reference in New Issue
Block a user