load script programmatically at runtime

48 views
Skip to first unread message

Chris Friesen

unread,
Dec 3, 2013, 12:15:27 AM12/3/13
to urh...@googlegroups.com
is there a way to load a angelscript file programmatically during runtime and have the abilty for it to call functions in another script?

Lasse Öörni

unread,
Dec 3, 2013, 5:18:08 AM12/3/13
to
You can load another ScriptFile resource, but you can't actually access the functions in it natively, as it's in another script module. However you can use ScriptFile's exposed C++ API, ie. the Execute() function, which takes the function declaration as a string and parameters as an array of variants.

Reply all
Reply to author
Forward
0 new messages