LUA to change mission status

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
orca
Posts: 545
Joined: Wed Nov 06, 2013 4:59 pm

LUA to change mission status

Post by orca »

Is there a Lua command to change a mission status from inactive to active?

if there is can someone give an example?

thanks
User avatar
lumiere
Posts: 286
Joined: Tue Mar 19, 2019 10:38 am

RE: LUA to change mission status

Post by lumiere »

Yes, "ScenEdit_SetMission" can set mission status to active/inactive.
You can also use "Change mission status" event action for same function without Lua.

Anyway, here is an example.
"{isactive=true}" activates mission while "{isactive=false}" inactivates.

Code: Select all

 side = "side name"
 mission= "mission name"
 ScenEdit_SetMission (side, mission, {isactive=true} )
"How Do You Stay Calm With A 7,000 Ton Nuclear Predator Listening For Your Heartbeat?"
My Lua garbages (Github)
Post Reply

Return to “Lua Legion”