Code:
action .....
{
VECTOR vec_temp;
VECTOR vec_temp2;
vec_set(vec_temp,my.x); // set temp vec to my location
vec_diff(vec_temp2,vector(0,0,0),vec_temp); // make temp point from my location to vec 000
vec_normalize(vec_temp2,5*time_step); // set your speed here

c_move(my, nullvector,vector(0,vec_temp2.y,0),.....); // move on the abs to 0 y



And why does this not work?? If you only use the Y axis?

Some simple things you should notice.
1) this has to run in a loop. Walk in you mind loop steps, first run it moves 5 closer to 0y next run 5 more, if it cross 0y it move 5 towards 0y on the next loop.
2) a lock maybe need ... if(my.y != 0)

Last edited by Malice; 08/02/15 15:48.