How can I create a TimelineComponent in C++?

Ah thanks, yep it helped me. I had to use UCurveFloat instead of the FRichCurve and for the timeline I used FTimeline (FTimeline | Unreal Engine Documentation).