the checkpoints are “targets” but I only use them to get the location.
I have an array of actors and an array of targets, one target for each actor.
However, I would like that when an actor reaches his target he moves towards another target.
How to move the actor towards the target is not a problem but I don’t know how to understand when an actor arrives at his destination and then give him another checkpoint
Ok, so char BP looks like this:
So you can see, I just called the next marker custom event, which finds the lowest numbered marker and moves to it. The markers have a collision box, when the character overlaps, they wait for half a second and then just call next marker, so all markers get visited.
Marker looks like this:
The only messy part ( at the moment ) is the function in the player that finds the next marker. Basically we’re looking for the lowest numbered marker:
( you could also sort by marker ID in the first place, and always just take the next one ).
EDIT: This is a bit clearer: