This commit is contained in:
Frank
2020-02-16 17:38:37 +01:00
parent 014b07ffc3
commit fd7469b5f0
2 changed files with 11 additions and 2 deletions
@@ -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