ermm i'd just use vec_dist in a while loop and check if the chosen key is pressed.

try...

Code:
while(player!=NULL)                // while player pointer is not empty.
{
if(vec_dist(me.x,point.x)<100)      // are you closer than 100 quants?
{
if(key_space) { execute something here!!! }       // has space been pressed?
}
wait(1);
}


Maybe that will work.



Last edited by DJBMASTER; 09/06/08 19:15.