ZetaBite posted on Feb 02, 2018 2:08:12 PM - Report post
Good day fellow CoSMOS users.
A small question about script making follows:
Lets assume I found the address of the value I want to change via script. Lets assume that I changed that value to 100 and all is good. However, what if I want to change the value depending on the situation? Is it possible to dynamically change the value?
I.E. is it possible to change script values from OUTSIDE the script?
Yes, you need to store the value using a symbol and register this symbol so it becomes global. Always remember to unregister the symbol on disable section and never register two symbols with the same name.
I've attached an example script. Let me know if you have any further questions.