Intrigued
03-04-2008, 09:37 PM
I read the Help file and the following in particular:
Note that as long as you put the .lua file into your project’s Scripts folder, you don’t even have to provide a full path to the file. For example:
require("MyScript.lua");
...is the same as:
require(_SourceFolder.."\\AutoPlay\\Scripts\\MyScript.lua");
I also noticed that it's only listed in the 'require' portion (and only works with 'require'), and not in the 'dofile' section.
Is that by design, or?
Note that as long as you put the .lua file into your project’s Scripts folder, you don’t even have to provide a full path to the file. For example:
require("MyScript.lua");
...is the same as:
require(_SourceFolder.."\\AutoPlay\\Scripts\\MyScript.lua");
I also noticed that it's only listed in the 'require' portion (and only works with 'require'), and not in the 'dofile' section.
Is that by design, or?