BlackHamm3rJack Posted November 19, 2013 Posted November 19, 2013 I need to create a sort of module in lua, not C++ like a .dll or .so module. The function "require" isn't existing, so how i can do to share functions between the same resource?
csiguusz Posted November 19, 2013 Posted November 19, 2013 Global functions defined in file1 can be used in file2 if file1 is loaded before file2 in the meta.xml.
BlackHamm3rJack Posted November 19, 2013 Author Posted November 19, 2013 Ok thx, you method is working
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now