Author Topic: Getting 2 emitters to go off in the same Image State  (Read 1948 times)

I want to add multiple emitters in a single State, let's say gunFlashEmitter and IonCannonFlashEmitter so they would play at the same time when the weapon would reach that Weapon image State. Kind of like one emitter does a flashing star, and another does a lightning effect. I want both to happen simultaneously. How do I add the two together to do that?

Code: [Select]
      // Initial start up state
...
stateEmitter[5] = IonCannonFlashEmitter;
...

I'm tempted to just put one beside the other and divide them with a space but I am pretty sure that doesn't work.

Code: [Select]
      // Initial start up state
...
stateEmitter[5] = IonCannonFlashEmitter gunFlashEmitter; //Probably wrong
...

Can someone help me out?
« Last Edit: October 17, 2007, 05:21:11 PM by Muffinmix »

I want to add multiple emitters in a single State, let's say gunFlashEmitter and IonCannonFlashEmitter so they would play at the same time when the weapon would reach that Weapon image State. Kind of like one emitter does a flashing star, and another does a lightning effect. I want both to happen simultaneously. How do I add the two together to do that?

Code: [Select]
      // Initial start up state
...
stateEmitter[5] = IonCannonFlashEmitter;
...

I'm tempted to just put one beside the other and divide them with a space but I am pretty sure that doesn't work.

Code: [Select]
      // Initial start up state
...
stateEmitter[5] = IonCannonFlashEmitter gunFlashEmitter; //Probably wrong
...

Can someone help me out?


me thinks:
Code: [Select]
stateEmitter[5] = IonCannonFlashEmitter;
        //emitter times and 'uff
stateEmitter[5] = GunFlashEmitter;
        //emitter times, stuff, and rest of code
will work. the ioncannonflash will play a mili-secend before the gunflash, and since your brain cant get the "data" from your eye fast 'nuff that you really cant realize a mili-secend pasted, thus making it look like they fired at the same time. profit.

edit: fix a typo that really runed what i said :/


I was thinking of somehow making a String, kind of like = IonCannonFlashEmitter @ GunFlashEmitter; but I dunno if that would work here.

Code: [Select]
stateEmitter[5]   =  "IonCannonFlashEmitter" TAB "gunFlashEmitter";

Code: [Select]
stateEmitter[5]   =  "IonCannonFlashEmitter" TAB "gunFlashEmitter";

Gonna try this, thank you so much Gikon  :cookieMonster:

no problem

edit: if your having major issues pm me the code

Code: [Select]
stateEmitter[5]   =  "IonCannonFlashEmitter" TAB "gunFlashEmitter";

Why TAB?

That won't work I don't think. Just have state 5 immediately move onto state 6 with another emitter, that way they practically do go off at the same time.

That won't work I don't think. Just have state 5 immediately move onto state 6 with another emitter, that way they practically do go off at the same time.

I could do that but I'm too lazy.

And thats why you're such a poor modder.

And thats why you're such a poor modder.

I'm just looking for an easier way to make the same emitter activate for 6+ nodes without too much hassle, but thanks for your contribution anyways.