Obi Official Forum
How to start/stop emitting from script? - 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: How to start/stop emitting from script? (/thread-2183.html)



How to start/stop emitting from script? - emz06 - 20-04-2020

Hi,

I went through the tutorials on YouTube and the documentation on your website, but I can't find anything related to how to start/stop particles from script.

How do I start/stop emitting? From which component is this done?

Thanks


RE: How to start/stop emitting from script? - josemendez - 20-04-2020

(20-04-2020, 12:54 AM)emz06 Wrote: Hi,

I went through the tutorials on YouTube and the documentation on your website, but I can't find anything related to how to start/stop particles from script.

How do I start/stop emitting? From which component is this done?

Thanks

The emitter component has a “speed” variable that controls emission speed in m/s. Works just like a real-world faucet: more speed = more fluid volume per second. See:

http://obi.virtualmethodstudio.com/tutorials/emitters.html

So just set it to zero to stop emitting fluid, back to the value you desire to resume emission.