if you want to change a var in another function do it like this:
Code:
void set_a_to_b(var* a, var b)
{
a[0] = b;
}
You have to give an array index. (the var a which is passed to the function doesn't have to be an array!) I'm not sure why it works or either how I foud out how It works - but it does.