SetScript
This function sets an entity script. A script contains predefined functions that get executed while the game runs.
Syntax
- boolean SetScript(string path, boolean start = true)
Parameters
- path: Path to the script file to load.
- start: If set to true the Start function will be called.
Returns
Returns true if the script was loaded and run, otherwise false is returned.