Jump to content

Recommended Posts

Posted

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

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...