Let's have a look into the manual:
First turn the enemy against the player:
http://www.conitec.net/beta/avec_to_angle.htm
Example:
function turn_towards_target()
{
// get the direction from the entity MY to the entity YOU
vec_set(temp,your.x);
vec_sub(temp,my.x);
vec_to_angle(my.pan,temp); // now MY looks at YOU
}
After that move it:
http://www.conitec.net/beta/ac_move.htmc_move(ENTITY* entity,VECTOR* reldist,VECTOR* absdist,var mode)
For instance like this:
c_move(me, VECTOR(1,0,0),nullvector, GLIDE);
And put this into an action with a while loop.
Maybe, like it is described in the online manual here:
http://www.conitec.net/litec/work18.htmThe general links are on this, means this forum, site that you are yet reading at the left upper side in the column called Links!
