13 | | To make a mission independent of the missoin editor: Use the editor to make a mutator (a .sdz file). Make the name of the .sdz file as same (+.sdz) as the mission name used in the editor. Place the .sdz file in spring/mods/. Look inside the .sdz file and take a copy of the script.txt file inside it - drag this script.txt over spring.exe to start the mission. |
| 13 | * Missions must set WG.isMission==true before widget:GamePreload(). At the same time, they should set WG.missionName and WG.missionObjective. The function WG.NewMissionObjective(string) can be used to update the objective, if later required. They must disabled the spawn gadget and (unless there is a reason not to) use the modoption deathmode=killall. |
| 14 | |
| 15 | * To make a mission run outside of the editor: Use the editor to make a mutator (a .sdz file). Make the name of the .sdz file as same (+.sdz) as the mission name used in the editor. Place the .sdz file in spring/mods/. Look inside the .sdz file and take a copy of the script.txt file inside it - drag this script.txt over spring.exe to start the mission. |