Page 1 of 1

Lua help with mission activation

Posted: Mon Dec 18, 2017 7:26 pm
by Gunner98
Hay guys

Haven't done Lua for a while:

As part of a Special Action, I want to give the player an option to activate an airstrike on an allied side.

I was thinking that this should work:

ScenEdit_SetMission ('NATO','Akureyri Strike', {isactive=True})

Although the syntax is fine, it does not do the trick. Any ideas, I'm probably missing something quite simple.

Thanks

B

RE: Lua help with mission activation

Posted: Mon Dec 18, 2017 7:52 pm
by stilesw
Gunnar,

Well, this works for me:
local mission = ScenEdit_SetMission ('Coalition','AEW Daharan',{isactive=true})

The only difference I see is the "local mission =" and using a lower case "true". Hope it helps.

-Wayne Stiles

RE: Lua help with mission activation

Posted: Mon Dec 18, 2017 8:23 pm
by Gunner98
Worked like a charm Wayne - thanks.

B