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"

Input Action Mapping Not Firing

Hi, I have an input action mapping called "Drop" setup.

I have tried putting an "InputAction Drop" into my MyCharacter Blueprint and I can see this fire when I pressed the mapped key. There is only one instance of MyCharacter in the level.

However, the same event does not fire if I put "InputAction Drop" into another Blueprint which just consists of just a cube static mesh... (or at least it does not look like it fires in the Blueprint when in Play mode). There are multiple instances of this cube static mesh.

Any tips?

(I am trying to make it so that a player can pick up the cube and drop it... At the moment, I can get them to pick up, but not drop...) alt text

Product Version: Not Selected
block.jpg (75.1 kB)
more ▼

asked Nov 18 '14 at 02:12 AM in Blueprint Scripting

avatar image

43 9 10 15

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

1 answer: sort voted first

By default only the controller and character receive player input. The easy bypass would be to set "player input" in the defaults of your BP to "Player 0". That way it will receive input from the first player which works just fine for a singleplayer.

However for clean coding I would suggest catching the event in your character (or even controller) and then firing the event in any third actor via casts or saved values (e.g. if you pick up a cube. Save a reference to it in a "Picked up" actor variable).

You can not only use the same function from your character to do multiple things with different actors but you also won't even wonder why something is doing something weird if you press button x because you handle all inputs in your controller (and maybe your character itself).

Debugging just gets easier. And reading that code as well... quite a lot!

more ▼

answered Nov 18 '14 at 09:22 AM

avatar image

5.9k 291 86 293

avatar image oculushut Nov 19 '14 at 12:45 AM

That worked. Thanks! :) I now have the character being aware of the thing they picked up and then call this thing to detach when I hit my X button on the controller.

avatar image ahuss Aug 29 '17 at 05:21 AM

Hi a bit of a bump but neccesary i assume the event you mean is the player input. but how would i capture this and access it in a third party/actor/blueprint. is there any chance you could show me a blueprint that does this. Thanks

(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