Keyboard event not working on character blueprint

Hi everyone!

I’m trying to create a dialogue system. It starts working when you get near a NPC and the dialogue ends if you press Left Ctrl.

I made the first attempt with an Actor Class blueprint and everything went well. Using the Actor Class blueprint, I added a “Enable Input” with the “Player Controller” connected to “Get Player Controller” return value, and that coming from the “Event ActorBeginOverlap”.

After that, the Left Ctrl keyboard event worked finely, but doesn’t seem to happen the same with a Character Blueprint.

If anyone knows how to solve that, I’d be so grateful!

/Óscar.

Sounds like an input consumption issue. By default, a keystroke can be only processed once - by the first entity that has input enabled and intercepts it. Think: first come, first serve. Like so:

InputFlow

As you can see, Pawns (and by extensions Characters, too) are late to the party.


  • either disable input on that actor so other entities can intercept it
  • or disable input consumption for that event:

image

Do note that in the latter case input could be processed by more than one actor simultaneously.

Hey!

Thank you for the fast reply!

I already tried unchecking Consume Input, but It didn’t work.

I also tried to disable input on the character, but nothing is happening either when I press Left Ctrl.

I’ll keep trying, hope I find the solution soon!

Are you possessing that character?

1 Like

That was the issue.

I thought that using “Enable Input” was enough but I still needed to possess the character.

Thank you a lot for the help!

Take care!

/Óscar.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.