Hey guys, I have a question. I know and understand Lua pretty well now (at least the Lua used in ROBLOX) and it seems like when I transfer to BeamNG Lua, it is a whole new language. I just figured you could go script.Parent and that would be the folder the Lua file is in, but it seems like it's not. Anybody mind explaining what is going on?
ROBLOX Lua operates in a single workspace, rather than in different folders around your computer. in ROBLOX, it is like writing a script in the World Editor of BeamNG, just locating different things in the tree. (i,e. you could say script.Parent.Part.CanCollide = false)
You can do that in beamng as well: scenetree.<object>.property = 123 What you are speaking about is how the API looks like to the game. This is very different. The underlying language (Lua) is the same