Thanks alot Roel I am sure it works the only thing is it gave me a couple of errors one I fixed, the other I am not sure whats wrong,
the first was just it needed a semicolon the other one is this.
var reaction_distance = 200;
action enemy
{
while(me)//while I exist in the level
{
//check for the player
if(player)
{
//turn to the player
vec_set(temp.x,player.x);
vec_sub(temp.x,my.x);
vec_to_angle(my.pan,temp.x);
if(vec_dist(my.x,player.x) < reaction_distance)
{
ent_move(vector(5,0,0),vector(0,0,-3) }
}
wait(1);
}
}
the error says
Quote:
< ent_move(vector(5,0,0),vector(0,0,-3) }>
MYNEWGAME.WDL 90:-1 Error(6): script error last line
.
error in script
engine shutdown
I am not sure how to fix this.