Added "land at point" state for helicopters

This commit is contained in:
Pax1601
2023-10-10 17:10:29 +02:00
parent 80eaa643c9
commit a038d6e999
13 changed files with 210 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
local version = "v0.4.4-alpha"
local debug = false -- True enables debug printing using DCS messages
local debug = true -- True enables debug printing using DCS messages
-- .dll related variables
Olympus.OlympusDLL = nil
@@ -260,6 +260,15 @@ function Olympus.buildTask(groupName, options)
}
}
end
-- Land at a specific point
elseif options['id'] == 'LandAtPoint' then
local point = coord.LLtoLO(options['lat'], options['lng'], 0)
task = {
id = 'Land',
params = {
point = {x = point.x, y = point.z},
}
}
end
end
return task