Page 1 of 1

Proper syntax SE_AddMission?

Posted: Sat May 21, 2022 3:21 pm
by vettim89
so I am try to create a strike mission with Lua. I use the following code

Code: Select all

ScenEdit_AddMission('NATO', 'Bodo 8-6', 'Strike', {type='land', EscortFlightSizeShooter=2, EscortMinShooter=4, EscortMaxShooter=8, EscortResponseRadius=50, EscortUseFlightSize=true, StrikeFlightSize=3, StrikeMinAircraftReq=6, StrikeUseFlightSize=true} )
I have tried using quotes and not using quotes. I have tried using flight numbers (i.e. "3" for three flights) and actual numbers (i.e. "6" for six aircraft). The mission is created successfully but it does so with the mission defaults instead of the numbers I am trying to feed it. Obviously I am getting the syntax wrong here. Any suggestions?

Re: Proper syntax SE_AddMission?

Posted: Sun May 22, 2022 5:44 am
by KnightHawk75
I believe I answered this same question from you recently in -
https://www.matrixgames.com/forums/view ... 6&t=383765

You are trying to do it in one step when it requires two, create, then set, as detailed in that thread.

Re: Proper syntax SE_AddMission?

Posted: Sun May 22, 2022 2:12 pm
by vettim89
oh jeez. Not this is embarrassing now isn't it? :oops: