Input Event Not Working Correctly

My inputs are not working as intended to for example this code is to change from 3rd person camera to 1st person camera but does nothing tryed to print string it does print but that is all i have a widget setup you can see in pictures and already setup to player 0. Any help greatly appriciated. Thank you.





These are pictures of what i’ve changed there is also a custom gamemode and controller

This is how the Vehicle template does its Camera switching. A simple Flip Flop removes the need for the boolean (although you can still get the state of the Flip Flop as a bool flag if need be).

The problem is nothing happens when I press to change camera or start dialog with npc. It does print string but that is all.

If it does print that means the Input Action is not to blame as it does trigger. Your problem lies further down.
For your camera, try to copy the setup from the screenshot is just sent is see if it does what you want.
As for your NPC problem, try adding break points to locate where your issue is. Does your NPC class actually implement your interface and if so, add a break point to the nodes after your message event to verify that it actually fires.

That worked thank you very much. Still very new to unreal but managed to do that do i have to do for every mapping enhanced now?

What do you mean?

I was thinking if I now needed to create enhanced input mapping for every input action now, but found out there is no need and can be done normally in project settings or blueprints works either way I made a mistake somewhere in code. Again thank you very much.

Well, as you can see in your project settings where you set up the inputs, the old system is deprecated. It’s still here in 5.2 to ensure compatibility but IIRC it won’t be the case with 5.3.
So I’d recommend you do migrate your inputs to the new Enhanced Input Action system. It shouldn’t take too long to do and the new system is so much more flexible!