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"

Possible bug with action events with multi-key triggers

Hey everyone,

I'm not sure if this is a bug or if this is intended, but here is the behavior I'm facing and how to reproduce it.

Step 1) From the Project Settings I made an action event called "MovementApplied", which is triggered by the keys W, S, A, D.

alt text

Step 2) Inside my player character I assigned the "Pressed" execution to increment an integer "Counter" and then print its value.

alt text

Step 3) Now I check the behavior through play testing. I press and hold "W", prints 1. While holding "W", I press "D", prints 2. While holding both, I press "A", prints 3.

Step 4) Now to "Released", I add a print statement, which says "Released".

alt text

Step 5) Now back to play testing. I press and hold "W", prints 1. While holding "W", I press "A". Prints nothing. I release "A" only, prints nothing. Press and release "D", nothing.

Step 6) Remove the execution pin from "Released", we're back to our position at step 2. If I play test, I get the same behavior as step 3.

Why do I not get any print statements from other key presses when I have something connected to "Released"? Is this a bug? Is this a normal behavior that I'm not understanding?

Product Version: UE 4.17
Tags:
1.png (22.5 kB)
2.png (64.4 kB)
3.png (83.6 kB)
more ▼

asked Nov 07 '17 at 07:16 PM in Bug Reports

avatar image

m.duman
48 3 7 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

As redbox stated you definitely need to use different implementation. The problem is the limitations with the 'MovementApplied' event. It will log the first key pressed and held from the input event when tied to the 'release' but it won't log any presses after. The better practice in this case would be to tie each key to a separate event that you want to actually use and log them. See the picture I'm attaching if that helps. You'll get the results you are looking for when calling W, A, S, and D individually instead of in one input event.

alt text

more ▼

answered Nov 08 '17 at 02:25 PM

avatar image

Trey Z ♦♦ STAFF
997 3 4 9

avatar image m.duman Nov 08 '17 at 06:26 PM

Alright, thanks for the answer!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Its really old thing and its ok.

https://answers.unrealengine.com/questions/33640/problem-with-controls.html

You should use some different implementation.

more ▼

answered Nov 08 '17 at 07:50 AM

avatar image

redbox
4.3k 82 20 104

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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