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"

Interacting with a Pawn using blueprints

Apparently you can't add an "enable input" to a Pawn, it doesn't read the input if you are not possessing it. How do you create an interaction between the player pawn and another pawn using blueprints?

Product Version: UE 4.9
more ▼

asked Nov 13 '15 at 05:19 AM in Blueprint Scripting

avatar image

134 14 23 145

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

1 answer: sort voted first

What kind of interaction you want mate? There are several project template that tell you the basic of interact between your actor and the other pawn, such as Puzzle, Endless Runner with blueprint, Turn Based Strategy, Couch knights,..

more ▼

answered Nov 13 '15 at 07:33 AM

avatar image

874 26 18 48

avatar image oneredlobster Nov 13 '15 at 10:27 PM

As I said, I'm trying to make another pawn receive an input from the player. As in "enable the input from the player that can be read by a non-player-pawn". It should be something simple, but my reason to post the question here is that the Enable Input doesn't work on a pawn like it would on a normal blueprint object. I just want to know why and how to make it work. Is that clear?

avatar image Matthew J ♦♦ STAFF Nov 13 '15 at 10:47 PM

Hello brunogruber,

Enabling input on a pawn that you're not possessing is best done by the illusion that the input is on the pawn, but is actually coming from the player controller / character. There are a multitude of ways that would be more/less efficient and easier/harder to set up, but they all depend on what your end goal is.

Are there multiple instances of this pawn's class? If not, you could do a GetAllActorsOfClass and set it to search for your pawn's class, giving you a reference to it. Does the controlled character have to look at the pawn for this input to be given? If so, you could use a linetrace to get a reference to that pawn and then make your changes to the pawn using that.

It would be helpful, as CKong stated, to get more information about what you intend to do to best give you an answer.

(comments are locked)
10|2000 characters needed characters left
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