Yue Posted August 16, 2018 Share Posted August 16, 2018 Hello, I have a concern, it seems that in Lua, in the Main.lua file, I have to declare the functions first before being used, right?. At the end of the file I created some functions, but I can't use them, so I had to put them in the header of the file. Is there an optional way to put them anywhere like C+++ and then use them? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 17, 2018 Share Posted August 17, 2018 Put them in a separate lua file and the in main.lua use import "myscript.lua" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.