Quote Originally Posted by p0wner52 View Post
i tried the script you posted but it does exactly the same as it did before
What if you put all your targets in an array and save each target's current position. Then you move the target to the next position useing the array's index.

Something like this
PHP Code:
steps = [];
maxsteps 14;
time 2;
steps[steps.size] = getent(self.target,"targetname");
steps[steps.size-1].position 0;
for(
i=0;i<maxsteps-1;i++)
{
    
steps[steps.size] = getent(steps[i].target,"targetname");
    
steps[steps.size-1].position i+1;
}

while(
1)
{
    for(
i=0;i<steps.size;i++)
    {
        
nextposition steps[i].position-1;
        if(
nextposition 0// no next step, back to top
            
nextposition steps.size-1;

        
steps[i].position nextposition;
        
steps[imoveto(steps[nextposition].origintime);
    }

    
steps[maxsteps-1waittill("movedone");