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"

Press E doesnt work in BP

Hello! Why those buttons doesnt work inside my actor blueptint but do work in my level blueprint? How to fix it?

alt text

Product Version: UE 4.16
Tags:
sd.jpg (382.6 kB)
more ▼

asked Sep 23 '18 at 10:43 AM in Blueprint Scripting

avatar image

NewMan2332
23 2 4 9

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

2 answers: sort voted first

Ok I made it. Now everything is working good without Auto Recieve input. alt text

sdd.jpg (380.5 kB)
more ▼

answered Sep 23 '18 at 11:56 AM

avatar image

NewMan2332
23 2 4 9

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

Regular actor do not process input by default as this is a counter-intuitive behaviour.

You can enable Auto Receive Input in the class defaults if you wish to override it, though.

more ▼

answered Sep 23 '18 at 11:04 AM

avatar image

Everynone
14.8k 77 25 62

avatar image NewMan2332 Sep 23 '18 at 11:24 AM

Thank you! In the defaults tab of your blueprint you'll need to set the drop down menu for "Auto Receive Input" from Disabled to player 0. For a single player game this will give your player control over input commands.

avatar image NewMan2332 Sep 23 '18 at 11:41 AM

Wait... After I changed it now E press dosnt work in my lelvel bluprint...

avatar image Everynone Sep 23 '18 at 11:55 AM

Yup, as I said, this is a counter-intuitive approach. This happens because the inputs are consumed. Essentially, only one can be processed by default - the one with higher priority. In this case the actors will have the priority, then the LB.

You can work around this but selecting the E node in the actor and unticking Consume Input. This will let it tunnel through to the next handled in line.


Do note you're digging yourself a deeper and deeper hole - this may bite you at some point and make it difficult to debug things when you have inputs coming from different sources. :)

Generally speaking, it's advisable to keep the controls in the Pawn or the Controller - input processing makes more sense there. But you may have a unique game where things require a different approach, of course.

Good luck!

(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