How do I control character's arm with mouse in combat

Hello I’m pretty new on ue4. I want to move character’s arm with mouse in combat, when I move my mouse right my character’s arm will move right and when I move mouse up character’s arm will move to up, it same in other directions. My project is simple and this arm control will looks like human fall flat’s and surgeon simulator’s arm control system (they are not pretty good examples, I know I hope you guys understand what I want).

I tried to make it like that:

CharacterBP:

AnimBP:

AnimGraph:

In this way when I press left click in mouse it start to move character’s arm with mouse movement. It’s work but arm is moving too fast and there is jitters. I tried to add finterp in it but it didn’t work.

Is there a better way or I made it true but I miss something?

Okay guys I tried so hard to made it last 10 days but finally I did it what I want today (when I ask I’m inspired I suppose :/).

There is the codes (Not complicate issues there so you can understand I think):

CharacterBP:

AnimBP:

AnimGraph:

If anyone know a better way you can say. Its not like a 10 days work I’m broke btw.

1 Like

Thank you very much! This solution really helped me!

Thanks this works, but I get better results with these settings: