Proper syntax SE_AddMission?

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
User avatar
vettim89
Posts: 3668
Joined: Fri Jul 13, 2007 11:38 pm
Location: Toledo, Ohio

Proper syntax SE_AddMission?

Post 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?
"We have met the enemy and they are ours" - Commodore O.H. Perry
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

Re: Proper syntax SE_AddMission?

Post 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.
User avatar
vettim89
Posts: 3668
Joined: Fri Jul 13, 2007 11:38 pm
Location: Toledo, Ohio

Re: Proper syntax SE_AddMission?

Post by vettim89 »

oh jeez. Not this is embarrassing now isn't it? :oops:
"We have met the enemy and they are ours" - Commodore O.H. Perry
Post Reply

Return to “Lua Legion”