Added xyDistance parameter to setAircraftTaskFollow

This commit is contained in:
Ambroise Garel 2025-07-25 15:23:31 +02:00
parent 96f333d40a
commit 4699a6ee47

View File

@ -101,7 +101,8 @@ do
return groupTable
end
local function setAircraftTaskFollow(groupTable, followedGroupID)
local function setAircraftTaskFollow(groupTable, followedGroupID, xyDistance)
xyDistance = xyDistance or 800
groupTable.task = "Escort"
table.insert(groupTable.route.points[1].task.params.tasks,
@ -112,7 +113,7 @@ do
["number"] = #groupTable.route.points[1].task.params.tasks + 1,
["params"] = {
groupId = followedGroupID,
pos = { x = -100, y = 0, z = -100 },
pos = { x = -xyDistance, y = 0, z = -xyDistance },
lastWptIndexFlag = false,
lastWptIndex = -1
},