Pawn follow spline

Hi, i need to create object/pawn following spline actor added inside pawn blueprint as component. Something like cargo escort from Overwatch or Team Fortress. You can give a version of the same blueprint and rewrite it to C ++.