Main.lua:
ourModule = require (“ourModule”);
ourModule.lua
module(…, package.seeall);
print(mainVariable);
Problem: the variable set in main.lua is not printed in the module
I’m really struggling with Modules - do people generally use them? How on earth do you work with scope between them?
Thanks
Tom
[import]uid: 55068 topic_id: 13551 reply_id: 313551[/import]