Scripting/Squirrel/Client Functions/Script::LoadScript
This wiki is using an old backup from 2020
Some information may be old/missing
Loads the specified script file. The script/ directory is automatically prepended. Same as dofile.
Syntax
void Script::LoadScript(filename)
Arguments
- string filename This is the name of the file, must be a string.
Example
This will load the file named 'test.nut'.
function Script::ScriptLoad()
{
Script.LoadScript("test.nut");
}
Notes
The event Script::LoadScript was used in in this example. More info about them in the corresponding pages.