Hello!
I’m really new to Unreal Engine. I started by creating an actor “ball” with an cameraComponent inside. I set this camera as default Camera using “Set View Target”. No I’ve an Pawn in my scene, which is a simple box. I want to move it, based on user input. I enabled Input with the “Enable Input” function, but nothing works. I tested it with an Event on the Space Bar, but the Text will not be printed…
Thank you very much, if you can help me!
Best regards from Germany
you going to need to specify the input to use. if you show your script we could help you more
Here’s the Ball Actor:
And that’s the Cube Pawn:
Update:
I also tried “Possess” instead of “Enable Input”, but that didn’t work either. How can I check if there is an other Class, which blocks the Input and how can I disable it?
hmmm i dont think its an issue with your pawn. i just created a pawn droppped it in the scene and set the auto posses to player 0, then created basically the same script you have exept i made the movement a bit larger (100 units vs your 1 unit) and it worked completely fine. so i would try upping the movement from one to something larger for testing. also what is the value of your variable? if your variable is a static amount and your only adding 1 unit to it then you will only move one unit once. basically you are trying to set the variable +1 everytime. i would suggest trying a get actor location instead of the variable.
below is how i set this up and it worked.