sea2sky Posted September 11, 2017 Posted September 11, 2017 Hi guys, how to incorporate a lua script into a .miz file? When I "attach" a script to a mission via DO_SCRIPT_FILE it is stored separately, but I would like a miz file to contain that script. Any known tricks to do so? Thanks! i5-9600K@4.8GHz ★ 32Gb DDR4 ★ rtx5070ti ★ Quest Pro ★ Warthog on Virpil base
NeilWillis Posted September 11, 2017 Posted September 11, 2017 Miz files are simply compressed folders. Re-name the file extension to .zip, de-compress it and you can add the lua, and then recompress it and rename it back to a miz file.
Grimes Posted September 11, 2017 Posted September 11, 2017 When you use triggers to add sounds or do script file, and add images to the briefing they are automatically embedded into the miz file. If you open it up it will be in a l10n/default folder. So make a trigger Once>TimeMore > Do Script File is literally all you need to do. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
sea2sky Posted September 11, 2017 Author Posted September 11, 2017 Perfect. Thanks! i5-9600K@4.8GHz ★ 32Gb DDR4 ★ rtx5070ti ★ Quest Pro ★ Warthog on Virpil base
Recommended Posts