AI movement by points from an array?

Thank you all very much, I didn’t even think about recursion…