BeginPlay()
{
Super::BeginPlay();
if (array.IsValidIndex(Iterator))
{
NewPosition = array[Iterator];
}
}
Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
if (GetActorLocation() == NewPosition)
{
Iterator++;
if (array.IsValidIndex(Iterator))
{
NewPosition = array[Iterator];
}
}
else
{
/*движемся к точке*/
}
}