How to get relative transform object in Blueprint?

When moving to the X-axis of the A object, I want to smoothly change the Y-axis of the B object to the same value as in the table. Any help on how to create a Blueprint would be appreciated.

First create a Curve in "miscellaneous → Curve "

next Setup your Curve Data

and now create a variable and select your created curve for it and use “Get Float Value”

Thank you for your answer. This question was asked to apply a camera offset. But I haven’t made it yet. As shown in the picture below, when the actor is the parent and moves along the x-axis, I want to apply an offset value along the z-axis to the camera that became the child.

you can simply test it with a “Print String” and it works. I test it before submit!

Thank you for your helping. It seems to work for me.