MCM Mission Set-up through LUA script
Posted: Wed Jan 10, 2024 12:28 pm
Hi,
I come to you with questions about the LUA script in context of setting up the MCM mission. I would like to create this mission solely using LUA code and currently my main problem is related to the syntax of the commands.
Current Script:
ScenEdit_AddReferencePoint({side='Blue', name='ref1', lat='N51.31.11', lon='E3.25.24', highlighted=true})
ScenEdit_AddReferencePoint({side='Blue', name='ref2', lat='N51.27.15', lon='E3.31.13', highlighted=true})
ScenEdit_AddReferencePoint({side='Blue', name='ref3', lat='N51.25.07', lon='E3.30.31', highlighted=true})
ScenEdit_AddReferencePoint({side='Blue', name='ref4', lat='N51.24.03', lon='E3.21.05', highlighted=true})
ScenEdit_AddMission('Blue', 'MineSweep', 'MineClearing', {area={'ref1','ref2','ref3','ref4'}})
However, the game seems unable to correctly interpret the area of operations limited by the reference points. From my understanding, this issue is connected to improper syntax of the 'AddMission" command. Unfortunately, I haven't been able to find any guidance that could steer me in the right direction.
Thank you in advance for your advices.
I come to you with questions about the LUA script in context of setting up the MCM mission. I would like to create this mission solely using LUA code and currently my main problem is related to the syntax of the commands.
Current Script:
ScenEdit_AddReferencePoint({side='Blue', name='ref1', lat='N51.31.11', lon='E3.25.24', highlighted=true})
ScenEdit_AddReferencePoint({side='Blue', name='ref2', lat='N51.27.15', lon='E3.31.13', highlighted=true})
ScenEdit_AddReferencePoint({side='Blue', name='ref3', lat='N51.25.07', lon='E3.30.31', highlighted=true})
ScenEdit_AddReferencePoint({side='Blue', name='ref4', lat='N51.24.03', lon='E3.21.05', highlighted=true})
ScenEdit_AddMission('Blue', 'MineSweep', 'MineClearing', {area={'ref1','ref2','ref3','ref4'}})
However, the game seems unable to correctly interpret the area of operations limited by the reference points. From my understanding, this issue is connected to improper syntax of the 'AddMission" command. Unfortunately, I haven't been able to find any guidance that could steer me in the right direction.
Thank you in advance for your advices.