mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Issue fixed by updating MIST and checking method existance
This commit is contained in:
parent
6ce9b2ddea
commit
a047a04d09
@ -1,6 +1,6 @@
|
||||
local version = "v0.2.0-alpha"
|
||||
|
||||
local debug = true
|
||||
local debug = false
|
||||
|
||||
Olympus.unitCounter = 1
|
||||
Olympus.payloadRegistry = {}
|
||||
@ -38,7 +38,7 @@ end
|
||||
function Olympus.getUnitByID(ID)
|
||||
for name, table in pairs(mist.DBs.unitsByName) do
|
||||
local unit = Unit.getByName(name)
|
||||
if unit and unit:getObjectID() == ID then
|
||||
if unit and unit["getObjectID"] and unit:getObjectID() == ID then
|
||||
return unit
|
||||
end
|
||||
end
|
||||
@ -553,6 +553,7 @@ function Olympus.setMissionData(arg, time)
|
||||
|
||||
local mission = {}
|
||||
mission.theatre = env.mission.theatre
|
||||
mission.time = DCS.getRealTime()
|
||||
|
||||
-- Assemble missionData table
|
||||
missionData["bullseyes"] = bullseyes
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -47,7 +47,7 @@ void registerLuaFunctions(lua_State* L)
|
||||
return;
|
||||
}
|
||||
|
||||
executeLuaScript(L, modLocation + "\\Scripts\\mist_4_4_90.lua");
|
||||
executeLuaScript(L, modLocation + "\\Scripts\\mist.lua");
|
||||
executeLuaScript(L, modLocation + "\\Scripts\\OlympusCommand.lua");
|
||||
executeLuaScript(L, modLocation + "\\Scripts\\unitPayloads.lua");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user