chromium Posted December 2, 2018 Posted December 2, 2018 does anyone know which lua environment are run the hooks files that you could put into saved games\DCS\Scripts\Hooks ? is it the server environment or another? I'm also looking to a way to share global variables (tables) from an hook file to another. Any suggestion? Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Github for latest version: https://github.com/Chromium18/DSMC
Grimes Posted December 4, 2018 Posted December 4, 2018 Server mainly. Though I think it has access to export also. 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
chromium Posted December 4, 2018 Author Posted December 4, 2018 ok. What looks strange is that global variables aren't shared between hooks files. I assumed that if I set a global (i.e. a table or a boolean) into "a.lua" it would be available in "b.lua", if both loaded into hooks. then I'll try to share them using net.dostring_in. Author of DSMC, mod to enable scenario persistency and save updated miz file Stable version & site: https://dsmcfordcs.wordpress.com/ Github for latest version: https://github.com/Chromium18/DSMC
Recommended Posts