Why use local copy/ref if you have global already?
Also is very internal at this point. Your not sure what is passed by ref and what by value.
Technically any complex type (a class) should be passed by ref.
So for example
intg_x=0;intx=g_x;x=1;//g_x != 1unitg_u=someunit;unitu=g_u;modifyu;// g_u is modified too.
How to link Local Trigger Var to Global Var?
Example: I create Global Var "T1Timer=0"
I want to make Trigger with Local Var "Timer" that have value of var "T1Timer"
So when I change Local Var "Timer" in trigger, Global Var "T1Timer" changed too
Help plz:)
Uhm... change the global variable whenever you change the local?
Besides that, I don't think there is a native way to do that for a primitive type.
@Kueken531: Go may be it possible by editing script?
It looks:
Why use local copy/ref if you have global already?
Also is very internal at this point. Your not sure what is passed by ref and what by value.
Technically any complex type (a class) should be passed by ref.
So for example