Hi, i'm looking for a code.

i want the model to, when distance between player and model < 500 :
1)looks the player
2)move in direction of player until it touch the player.

i have no problem for check distance and make the model looks the player :

Quote:

while (vec_dist(player.x, me.x)>300){wait(1);}
vec_set(temp,player.x);vec_sub(temp,my.x);vec_to_angle(my.pan,temp); // now MY looks at YOU


but i don't know how to make the model move in direction of player after it smirk
if someone can give me the code for it.. thx :l

ps : i think it can be done with "position" but i'm looking for a easier solution with "vec" in a first time.

Last edited by ayks; 03/14/10 14:59.