How to move a child actor along a defined track

I’m doing a puzzle game, and I need an object that have 2 part. Part 1 can move along a defined track on part 2 and return true value when stop right position. The track not straight line.
I’m newbie in ue4. So, what should I do? Set Relative Location? But what about track?
Hope some help plz…
Thank you so much !

Look into splines, you can shape them the way you want an have an object slide along it.

Indeed, Splines can be useful effectively for this. If I recall correctly UE’s Content examples has an example for this specific case.