Wy does nothing happen there?

action blade()
{
while (!player) {wait (1);}
while (vec_dist (player.x, my.x) > 1000)
{
time_factor = 0.1;
}
wait (1);
}


I have know Gamestudio/A7 Commercial Edition 7.84