Announcement

Collapse
No announcement yet.

Simple keyboard input blueprint not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simple keyboard input blueprint not working

    Blueprint noob here. After developing with Unity for 3 years, I've decided to switch to UE4. So now I'm just learning to use blueprints.

    My blueprint is simple. All it does is takes a keyboard input (J) and then changes the location of the actor to (0, 180, 20). Since the blueprint is part of the actor, the target is set to "self". However, this doesn't work.

    It works fine when I use "Event BeginPlay" instead of the keyboard input J, but that happens at the beginning of the game (not what I want).

    Click image for larger version

Name:	enable_input.png
Views:	1870
Size:	50.8 KB
ID:	1504765

    #2
    An actor is an object. Not a Pawn or Character or Vehicle. I'm not sure it would have input enabled. Try adding a node for "enable input" (something like that - not at my PC now). Although that seems redundant as you should either cast to that actor from your player Character or Player Controller. Either cast to it or use an Interface which better serves to pass things to actors from your player input.

    Comment


      #3
      Like JigSaw said or enable the actor to receive inputs from the player:

      Click image for larger version

Name:	fig.png
Views:	2852
Size:	91.4 KB
ID:	1505184
      "I have harnessed the shadows that stride from world to world to sow death and madness."

      Comment

      Working...
      X