This is basic stuff really and a noob question.
Is it possible in lua to place functions in a seperate file and to call them from lua.app
What I am wanting to do is put the code for my main menu in a function or method in another file and have it loaded in to be called in the app.lua file.
something like
require_once ('scripts/functions.lua')
then call a function to display a menu
menu();
and in the functions file have all my functions like savegame, respawn, inventury etc.
I like to do things like this as it keeps everything nice and tidy, also easy to find things when problems arise...