SetScript
This function sets an entity script. A script contains predefined functions that get executed while the game runs.
Syntax
- bool SetScript(const std::string& path, const bool 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.