Make something move along predefined path

I want to make something move along predefined path and loop the movement, i remember doing this in unity ages ago with some sort of path editor.

How would i go about for example make a bird fly around the map?

Or for example this https://i.makeagif.com/media/9-11-2015/AtGUSX.gif

These would be two totally separate things.

The bird flying around a map would typically use a spline:

Whereas the oil pump would either be animation in blueprints or an animated skeletal mesh. BP would probably be fine for that, it's a simple enough movement: