How to get the path of a subject navigating through a maze

Hi Guys, to explain my current situation: for a project of mine I need to introduce human subject into a maze in which they have to get to marked locations for an odor to be triggered. And at the end I need a path summary of the subject through the maze. We thought of creating checkpoints and putting them through the maze, create a c++ class linked with a blueprint to see which checkpoint was triggered through collision and at which time. But I have been stuck at it without any progress since I am a beginner at C++ and UE5.
Does anyone have a suggestion of what I can do? I would be very thankful

If I understand this correctly, you are attempting to record and then present how the player went through the maze at the conclusion of it?

Using checkpoints could work; you’d create a class that has all the collision boxes at each junction/turn in the maze, that would add a vector (or the component itself) to an array on every collision. At the conclusion, you could then for each loop through the array of locations and draw a line from location to location. That’s a pretty simplistic approach that I think would work.

You could also create a timer of a function that runs every second or so, that adds the player’s location to an array, then you could draw it out similarly as before. Would definitely be much easier this way and the code could be in the player class for easier access.