First commit

This commit is contained in:
Pax1601
2022-11-20 12:05:38 +01:00
commit 3aa1cfe104
162 changed files with 4318 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
dofile("C:\\Users\\dpass\\Documents\\Olympus\\scripts\\mist_4_4_90.lua")
Olympus = {}
function Olympus.notify(message, displayFor)
trigger.action.outText(message, displayFor)
end
function Olympus.move(name, lat, lng, v)
Olympus.notify("Olympus.move " .. name .. " (" .. lat .. ", " .. lng ..")", 10)
local unit = Unit.getByName(name)
if unit ~= nil then
local unitDestination = mist.utils.makeVec2(coord.LLtoLO(lat, lng, 0))
vars =
{
group = unit:getGroup(),
point = mist.utils.makeVec3(unitDestination),
form = "Off Road",
heading = 0,
speed = v,
disableRoads = true
}
mist.groupToRandomPoint(vars)
Olympus.notify("Olympus.move executed succesfully", 10)
else
Olympus.notify("Error in Olympus.move " .. name, 10)
end
end
Olympus.notify("OlympusCommand script loaded correctly", 10)

View File

@@ -0,0 +1,25 @@
Olympus = {}
function Olympus.notify(message, displayFor)
trigger.action.outText(message, displayFor)
end
function Olympus.setMissionData(arg, time)
local bullseyeVec3 = coalition.getMainRefPoint(0)
local bullseyeLatitude, bullseyeLongitude, bullseyeAltitude = coord.LOtoLL(bullseyeVec3)
local command = "Olympus.missionData = " ..
"{" ..
"bullseye = {" ..
"x = " .. bullseyeVec3.x .. "," ..
"y = " .. bullseyeVec3.z .. "," ..
"lat = " .. bullseyeLatitude .. "," ..
"lng = " .. bullseyeLongitude .. "," ..
"}" ..
"}\n" ..
"Olympus.OlympusDLL.setMissionData()"
net.dostring_in("export", command)
return time + 5
end
timer.scheduleFunction(Olympus.setMissionData, {}, timer.getTime() + 5)
Olympus.notify("OlympusMission script loaded correctly", 10)