Now, GMod's Lua structure has a number of key differences from LOVE (including what's brought me here to the LOVE forums today), but overall it's pretty much the same thing.
The one thing that's completely stumped me is calling functions from separate files - in GMod it's just
Code: Select all
include("lua_file_here.lua")
--other code
CallFunctionFromSeparateFile()
--other code
--etc
I know I could have each individual function I want to call from the file in question be it's own separate file, and call the function as a chunk, but I'd rather not have 1,000 lua files with just one function each, because most of the functions are quite small and are only called once or twice in the entire game.
Anybody have any idea what's going on, or did I do a really poor job explaining the situation?
Thanks in advance!