Obi Official Forum
Help How to change the Obi parameter in another script during the run time - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Help How to change the Obi parameter in another script during the run time (/thread-1086.html)



How to change the Obi parameter in another script during the run time - zjyzjy1121 - 14-04-2019

I tried to access the "Speed" parameter of the ObiEmitter script in another self-defined script but could not find it. I am wondering if there is any way to change this parameter in another script during the run time?


RE: How to change the Obi parameter in another script during the run time - josemendez - 15-04-2019

(14-04-2019, 12:54 AM)zjyzjy1121 Wrote: I tried to access the "Speed" parameter of the ObiEmitter script in another self-defined script but could not find it. I am wondering if there is any way to change this parameter in another script during the run time?

Hi there,

You can set/get the speed parameter like this. It is just a regular public variable:

Code:
emitter.speed = 1;