Here are the docs for it:
http://www.angelcode.com/angelscript/sdk...c_ref.html
What
&in means is that it only acts as input (as you'd expect) and it cannot be modified back out. It basically makes a copy of the original value and lets you play with it locally. It says that it has little benefit other than slight performance improvements in certain cases, especially while also using
const.
&out on the other hand is a little more interesting. It lets you modify the direct value that was given. From what I understand, you can do this:
void OnStart() {
int value = 5;
process(value);
print(value);
}
void process(int &out value) {
value = 10;
}
Running this would print out 10, whereas if it were
&in, it would give you 5. Do you see why?
Also, apologies for going off-topic. OP, you can respond whenever if you got your issue resolved.