Is there a problem with SE_AddMission in 1.05?

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
vonotha
Posts: 60
Joined: Thu Jan 19, 2023 2:28 am

Is there a problem with SE_AddMission in 1.05?

Post by vonotha »

I've created manually an Intercept mission (name='Falklands Intercept'), and tried to create an identical mission with SE_AddMission. In order to follow the in-game structure, I've extracted the original mission data.

I'm getting a 'missing mission sub-type' error when I try to use SE_AddMission. What am I doing wrong?

I've tried both 'Air_Intercept' and 'Air Intercept' as a mission sub-type.

addmission.jpg
addmission.jpg (60.36 KiB) Viewed 385 times

CMO v1.06 - Build 1328.18; Steam mode; Tacview and all modules except Falklands
User avatar
blu3s
Posts: 1255
Joined: Fri Jul 08, 2022 9:45 am

Re: Is there a problem with SE_AddMission in 1.05?

Post by blu3s »

As indicated here the keyword for Air Strike is 'air'
vonotha
Posts: 60
Joined: Thu Jan 19, 2023 2:28 am

Re: Is there a problem with SE_AddMission in 1.05?

Post by vonotha »

blu3s wrote: Wed Feb 08, 2023 8:05 am As indicated here the keyword for Air Strike is 'air'

Code: Select all

ScenEdit_AddMission('NATO', 'Falklands Intercept2', 'strike', {type='air'})
This works indeed :)

'air' was one of (the most obvious ;) options I did not test for air intercept mission.

Thanks a lot!

CMO v1.06 - Build 1328.18; Steam mode; Tacview and all modules except Falklands
User avatar
blu3s
Posts: 1255
Joined: Fri Jul 08, 2022 9:45 am

Re: Is there a problem with SE_AddMission in 1.05?

Post by blu3s »

vonotha wrote: Thu Feb 09, 2023 11:37 am
blu3s wrote: Wed Feb 08, 2023 8:05 am As indicated here the keyword for Air Strike is 'air'

Code: Select all

ScenEdit_AddMission('NATO', 'Falklands Intercept2', 'strike', {type='air'})
This works indeed :)

'air' was one of (the most obvious ;) options I did not test for air intercept mission.

Thanks a lot!
It usually happens that we look for more complicated words hahah :D
vonotha
Posts: 60
Joined: Thu Jan 19, 2023 2:28 am

Re: Is there a problem with SE_AddMission in 1.05?

Post by vonotha »

blu3s wrote: Thu Feb 09, 2023 4:21 pm
vonotha wrote: Thu Feb 09, 2023 11:37 am
blu3s wrote: Wed Feb 08, 2023 8:05 am As indicated here the keyword for Air Strike is 'air'

Code: Select all

ScenEdit_AddMission('NATO', 'Falklands Intercept2', 'strike', {type='air'})
This works indeed :)

'air' was one of (the most obvious ;) options I did not test for air intercept mission.

Thanks a lot!
It usually happens that we look for more complicated words hahah :D
Yeap. And I DID read the documentation before.

AIR [, AAW, Air_Intercept ] was just a bit unclear.

CMO v1.06 - Build 1328.18; Steam mode; Tacview and all modules except Falklands
Post Reply

Return to “Lua Legion”