mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Added xyDistance parameter to setAircraftTaskFollow
This commit is contained in:
parent
96f333d40a
commit
4699a6ee47
@ -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
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user