Moving actors on Spline behaves weirdly

I’m trying to make a spline conveyor thing where i can step through the spline and actors move on it. When they reach either side it will spawn a next actor from array on the corresponding side.

It all is working kind of. But I think when actor reaches a side sometimes they for some reason get stuck in a weird loop where it destroys and spawns new actor during the timeline but without printing out the info it all looks normal.
(It happens always when I reach the end of array and move to end of spline. But sometimes rarely it happens randomly also.)

I have tried branches but they haven’t worked for me. I’m quite lost at what to do.

what I did was rather than use <= or >= . I used “Nearly equal (float)” node.

And NOT clamping the lerp value when setting current distance.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.