I need one button to do two actions at once

Hi life savers,

I created two, basically the same, emitters and in it are two key press actions. So I’ve got K and L in emitter 1 and K and L in emitter 2. The problem is when I hit the K or L key it only changes one of the emitters.

I suppose it’s an easy thing to do but I am really new and really need this to work so how can I fix this?

do you want both to react to key presses at the same time or just say the closest one?

if you want both at same time then you have a few options. from your character you could have the inputs that then call a custom event in the emitters. with this option you would need to have a reference to the emitters. there are many ways to get a references which is explained all over the place but i will go in to more depth if needed. you could also go into the the emitter bps that you show here and select the input nodes and in the details panel you should find a check box that says some thing like consume input, uncheck that and both should react.

if you want only the emitter closest to your character to react thats also pretty easy you just have to script a way that modifies the flow of the script. basically make it so the script can only run if the character is in range. for example if the character is overlapping a volume that is associated with the emitter then and only then can the input actually fire the entire script.

could do some dangerous threading with gate

what do you mean?

Thanks man, the consume input method worked for me.