My lua script is getting a bit long and I was wondering if it was possible to split it into several files?
And will my "global" variables still be accessible to all functions?
Code: Select all
file1.lua:
function func1()
..
function func1_1()
..
file2.lua:
function func2()
..
function func2_1()
..
main.lua:
include file1.lua
include file2.lua
function2_1(...)
function1(...)
...
BR, Thomas Fogh[/code]