Alienhead Posted December 5, 2023 Share Posted December 5, 2023 Does lua 5.3 lack the Import("filename") ? Has this changed or is there an alternative ? Also, the new method of SetScript()?? Thanks. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted December 5, 2023 Share Posted December 5, 2023 Call require() and leave off the .lua file extension. Scripts should be relative to the /Source folder. entity:AddComponent(table) will add a component, i.e. entity:AddComponent(Mover) 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted December 5, 2023 Author Share Posted December 5, 2023 Gotcha, thanks a million. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted December 5, 2023 Share Posted December 5, 2023 Oh, and we are using Lua 5.4 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. 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.