Many thanks to FlightControl for his Herculean effort. Still, at the beginning of my journey in Moose space, I have Hummer spawning in a mission. This works nicely as FlightControl has described. However, if you try to load the mission dynamically nothing spawns. I've set up the debug facility according to the instruction video, which I've watched over and over again. The dynamic loading is done as follows: on mission start the following script is executed (DO SCRIPT): MOOSE.Include( "D:/LDTWorkspace/My_Missions/TestMission/","TestMisson.lua")
Does anyone have an idea what is wrong?
I found this in dcs.log:
2018-07-08 20:36:03.165 ERROR DCS: Mission script error: : [string "MOOSE.Include( "D:/LDTWorkspace/My_Missions/TestMission/","TestMisson.lua")"]:1: attempt to index global 'MOOSE' (a nil value)
stack traceback:
[C]: ?
[string "MOOSE.Include( "D:/LDTWorkspace/My_Missions/TestMission/","TestMisson.lua")"]:1: in main chunk
2018-07-08 20:36:03.200 INFO Lua: Lua CPU usage: metric: average mission execution: 50.1712 %