Alienhead Posted December 5, 2023 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 Alienhead Components and Software
Josh Posted December 5, 2023 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 Let's build cool stuff and have fun.
Alienhead Posted December 5, 2023 Author Posted December 5, 2023 Gotcha, thanks a million. Quote Alienhead Components and Software
Josh Posted December 5, 2023 Posted December 5, 2023 Oh, and we are using Lua 5.4 1 Quote Let's build cool stuff and have fun.
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.