Author Topic: Emitter with multiple particles?  (Read 989 times)

The variable for an EmitterData for its particle type is called "particles".  This implies that it can have more than one particle type, and I seem to recall that this is the case, but neither space-delimited nor tab-delimited particle datablock names work.  Can a single EmitterData actually have multiple particle types, or do I have to have multiple EmitterDatas?

In this old thread http://forum.blockland.us/index.php?topic=59525.0 muffinmix says

Quote
//You particle datablock string. I said string, because you can actually have different particles emitted from a single emitter. How? Simply add a space, then the next particle datablock name, like so: = "Fireball2TrailParticle Fireball2FartParticle";. I don't think there is a limit to how many different kinds you can fit in there, but basically whenever the emitter hits an emitting time, it will choose one particle from the list, and emit it. If you have two, each has 50% chance, with three each has 33% chance and so on. This is MONSTROUSLY useful especially for Projectile Trails simply because you can only have one emitter per projectile. Doing the same thing with the projectile's trailEmitter string doesn't work. **There seems to be a minimal ejectionPeriodMS for this string feature, under which the particles do that whole "Switching"  bug (all particles switch from one datablock to another, causing some problems). Fortunately the minimal ejectionPeriod is quite small, I pinpointed it to be around 10, so you may not have to worry about it.**

which kinda doesnt work. if I put two particles separated by a space it will cause the effect muffinmix calls "Switching" bug which I havent been able to fix even if my ejectionPeriod is higher or lower than 10.