Right before setting SplineDistanceOfEnemyMesh, Mod the value with SplineLength. This will make the result relatively back to 0 if it becomes greater than SplineLength (due to the offset you are applying)
Right before setting SplineDistanceOfEnemyMesh, Mod the value with SplineLength. This will make the result relatively back to 0 if it becomes greater than SplineLength (due to the offset you are applying)