This is the code, Ascalon.

VECTOR my_pos;
VECTOR target_pos;
VECTOR temp;

target_pos.x = -1012;
target_pos.y = 413;
target_pos.z = 594;
vec_set(temp,target_pos.x);
vec_sub(temp,my.x);
vec_to_angle(my.pan,temp);

while(1)
{
if ( my.status == 1)
{
c_move (my, vector(10, 0, 0), NULL, GLIDE);
run_percentage += 6 * time_step;
wait(1);
}
wait(1);
}

As yo see, i defined target_pos as a vector -1012,413,594 coordinates.
The entity go good to that vector but then continues flying on the space
i need a code that when get the specified coordinates it stop the entity there.

The code works good, the only thing that i need is to stop the fly of the entity when it reach the position of target_pos

Thanks

Last edited by Erick_Castro; 11/28/09 15:44.