x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?alt text

Product Version: UE 4.19
Tags:
img-3403.jpg (2.3 MB)
img-3404.jpg (2.2 MB)
more ▼

asked Apr 11 '18 at 01:05 PM in Using UE4

avatar image

YvesV
1 1 1

avatar image ThompsonN13 Apr 11 '18 at 02:19 PM

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.

avatar image YvesV Apr 13 '18 at 10:50 AM

Thanks man, the consume input method worked for me.

avatar image GIGA-Money Apr 11 '18 at 04:16 PM

could do some dangerous threading with gate

avatar image ThompsonN13 Apr 11 '18 at 04:20 PM

what do you mean?

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question