Home:ALL Converter>AngelScript, how to load a script file?

AngelScript, how to load a script file?

Ask Time:2011-07-16T02:12:35         Author:blubberbernd

Json Formatter

I know how I can bind C++ functions to AngelScript, but in my C++ code, how do I load an .as script file? How can I say in my C++ "Execute myscript.as now!" ?

In the AngelScript API I don't find any function like "LoadScript" or "ExecuteScript". Or do I have to define a path somewhere from where AngelScript loads all scripts and I don't need to tell it the exact files?

Author:blubberbernd,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/6711422/angelscript-how-to-load-a-script-file
blubberbernd :

Just found it out (in a small side sentence in the docs):\n\nAngelScript doesn't provide a build in file loading. That's why there is no API function. So the manual loading is indeed the only way.",
2011-07-15T18:39:17
yy