Hey all,
This is probably a really stupid question, but I can't seem to work it out. I have a type for a slider (gui object) which I want to control a global variable (actually I want to create a whole bunch of them for an editor I'm working on)... Anyway, I can't seem to figure out how to get that type's value to propagate into the global variable.
In other words, if I have a global variable named "testvar", and I want to continuously update testvar to equal the value of slider\currentvalue#, how would I do that?
Right now, I'm passing the global variable name to the type as a field called "variable$". But when I go to set that equal to the value of the slider (slider\variable = slider\currentvalue#), it doesn't update the global variable, instead it resets the type field to equal just the current value of the slider.
That's probably as clear as mud, but hopefully someone will be able to sort it out and give me a hand!
Thanks,
Roland
This is probably a really stupid question, but I can't seem to work it out. I have a type for a slider (gui object) which I want to control a global variable (actually I want to create a whole bunch of them for an editor I'm working on)... Anyway, I can't seem to figure out how to get that type's value to propagate into the global variable.
In other words, if I have a global variable named "testvar", and I want to continuously update testvar to equal the value of slider\currentvalue#, how would I do that?
Right now, I'm passing the global variable name to the type as a field called "variable$". But when I go to set that equal to the value of the slider (slider\variable = slider\currentvalue#), it doesn't update the global variable, instead it resets the type field to equal just the current value of the slider.
That's probably as clear as mud, but hopefully someone will be able to sort it out and give me a hand!
Thanks,
Roland