I created a project based on the Top Down Example.
In the project comes a character that I can move by clicking on the terrain that already comes by default.
Image of gameplay:
In the character's blueprint, I added a function on the N KEY. Simply to print a sentence (key N).
Character's blueprint:
I created an NPC based on creating a Blueprint Class > Character:
In the NPC blueprint I added a function, only now in the M KEY, but with the same principle. Print a sentence (key M).
NPC's Blueprint:
It turns out that only the command made in the blueprint of the character works:
I alternately clicked the N and M keys to take the screenshot.
I scanned the character's blueprint to see if something was missing, something I needed to add in order for the NPC blueprint to recognize the keyboard command. But I only found things like that related to the mouse.
Scan:
I'd like to know what I need to do to make the NPC blueprint recognize the M KEY.