For an app I’m working on I need a few variables (tables) that I can reference through out the app but need to be loaded in the main.lua. If I just say testable = {}, that won’t be local but if I say local testable = {} that won’t work at all.
If I write a module called vars, require and call a function from it (example below) will these variables be local?
local var = {}
function getvars()
testable = {}
end
var.getvars = getvars
return var
After calling getvars, testable, if I’m understanding it correctly, is now local?
Thanks. [import]uid: 23649 topic_id: 16068 reply_id: 316068[/import]