I got the chasing code:
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);
}
}
I haven't tested it but, it should work