Quote:
function move_with_ball()
{

while(!my) wait(1);


while(1){
if(dist <= 20){
proc_mode = PROC_LATE;
my.x = player.x + 15 * cos(player.pan);
my.y = player.y + 15 * sin(player.pan);
my.z = player.z - 15;
my.pan=player.pan;
my.roll+=2;
my.tilt+=2;
}
if(key_x){
kick();
}

}
wait(1);
}

"wait(1)" is outside while loop, try this:
Click to reveal..
function move_with_ball()
{

while(!my) wait(1);


while(1){
if(dist <= 20){
proc_mode = PROC_LATE;
my.x = player.x + 15 * cos(player.pan);
my.y = player.y + 15 * sin(player.pan);
my.z = player.z - 15;
my.pan=player.pan;
my.roll+=2;
my.tilt+=2;
}
if(key_x){
kick();
}
wait(1);
}
}