I made an quick example for you to reference ,
First the bird should be a pawn,create it with a pawn and then add a “floating movement component ” to it. at the bird’s begin play;
the move event:
the custom function: