I have this Blue Print so when I hit a key on my keyboard it should trigger the Camera to move,
It works when I hook up Event Begin Play, but only sometimes when I hook up the Keyboard event.
I’m not sure what the reason is, or how to find out what the problem is.
Make sure this code is in your characterBP so that the keyboard inputs can received. And also the characterBP should be possessed by a controller.
If you want to do this without a character, and just control an actor from “outside”, you can set the “Auto Receive Input” to player 0 in your actorBP’s class defaults. Although this will probably cause problems down the road.
Ensure you have ‘consume input’ unchecked on the key node:
Otherwise, this keyboard press will be fighting with all the other blueprints you have the same node in. It will look exactly like it’s working randomly…
Yes, I built the whole thing as a Blue Print so the code to totally be there, its like the Blue Print doesn’t actually know that I’m hitting the keyboard button!
I get the same result in a brand new empty level.
my blue Print work when I hook up event Begin Play, but not when I Choose and Input Key (like NumPad1).
All I’m looking for is an a way to get an object to move from one location to another when I want it to.
I can’t even get the Print String to work with the key press. I’ve have event tried the input actions in the engine input and nothing.
Its like when I hit play the Blue Print doesn’t see my keyboard.
All I’m looking for is an a way to get an object to move from one location to another when I want it to.
Ahh man, it is totally working in the level Blue Print,
I had made an Actor Blue Print and it doesn’t appear to work in there. there must be some weird reason why they are different like that
Today I have found another solution by using some OSC controls to send commands and its been very reliable so far!