chromium Posted December 2, 2018 Share 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/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Grimes Posted December 4, 2018 Share 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 Link to comment Share on other sites More sharing options...
chromium Posted December 4, 2018 Author Share 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/ Openbeta: https://github.com/Chromium18/DSMC The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously. Link to comment Share on other sites More sharing options...
Recommended Posts