Archive 17/01/2023.

Get return value when executing AS function from C++

Enhex

How can I get a return value when executing an AngelScript function/method from C++?

I couldn’t get asIScriptContext::GetReturn*() to work.

S.L.C

I suppose it depends on what you’re trying to return and what code you’ve used. Without seeing the code I’m not sure anyone could do anything but guess.

Eugene

I failed to reach this goal shame
Now I just pass object parameter and read it later.