Page 1 of 1
LUA to change mission status
Posted: Mon May 20, 2019 8:25 pm
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
RE: LUA to change mission status
Posted: Tue May 21, 2019 1:13 am
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} )