hi,
it would be useful to have a way of including the contents of another file into my lua script
eg
setup.lua
[lua]initStuff()[/lua]
level1.lua
[lua]loadfile(“setup.lua”)
doStuff()[/lua]
level2.lua
[lua]loadfile(“setup.lua”)
doStuff()[/lua]
i wanted to try do this when amending the Ghosts project so all the duplicate code could just be moved into a couple of generic include files
thanks
j [import]uid: 6645 topic_id: 4364 reply_id: 304364[/import]