action follow_player{
my.shadow = on;
while(1){wait(1);
if(vec_dist(my.x, player.x) < 375){//if(player is 375 quants close to me...
my.skill1 = 5 * time;// set to 0 to stop movement
//watching the player
vec_set(temp, player.x);
vec_sub(temp, my.x);
vec_to_angle(my.pan, temp);
my.tilt = 0;//dont tilt me in the players direction...
}
c_move(me, my.skill1, nullvector, glide);
}
}