Code:
if (vec_dist (player.x, my.x) < 100) // the player has come clos
{
if (key_e == on)
{
while(1)
{
vec_set(temp, player.x);
vec_sub(temp, my.x);
vec_to_angle(my.pan, temp);
wait(1);
}
}
}



now he turns if the player presses e just change e to enter


Visit:
schwenkschuster-design.de