Dynamic animation based on on object location

I have actor near my character. I want my character hand to be always fixed to the actor. The actors doesn’t move much just around 10-20 Unreal units max.

I don’t my characters hand to follow its base animation instead it follows the the position of the object.

Basically the palm stays at the position of the object and the elbow adjusts so that it doesn’t look out of place.

Anyway to do something similar to this using C++?

You should look into inverse kinematics inside the animation blueprint. Feed the location of your object every tick to IK node and you should be set.