S
SVG
Guest
Using GM2
Simple question (I hope):
Similar to how you make an array change in the script and also change it's value in the object calling the script, can the same thing be done for a variable? My question lies in this example code:
Simple question (I hope):
Similar to how you make an array change in the script and also change it's value in the object calling the script, can the same thing be done for a variable? My question lies in this example code:
Code:
<object>
scr_test(my_array, my_variable);
<scr_test>
var ary = argument[0];
var myv = argument[1];
ary[@0] = 1; //Changes value even for the array inside the object calling this script;
@myv = 1; //How can I do something similar for a variable?