Third Person Mouse Input

Hey everyone! I have a project where I use both left and right mouse buttons for movement. I want to use my mouse to click NPCs and objects in game but right now it is attached to the Turn and LookUp axis. Is there I way I can change the Turn and Lookup axis to be when I hold my left mouse button so I can have my mouse free when I want to click objects and NPCs ingame? I searched all around and didn’t find an answer, hence why I am making the post.

Currently I hold left and right mouse button to run around, once I let those go it’s still turning around and looking up and down when I move my mouse around since they’re attached to mouse x and mouse y.

Thank you in advance!

Yes you can but it depend of your project, can you show us your player controler event graph please?