if(trace_to_ground>1){my.z = -275;}

means if distance to ground is more than 1 move me to z-275.

so your distance is always moar than 1 and you always keep moving on -275

that line should be replaced with

if(trace_hit)vec_set(my.x,target);

//target and trace_hit is predefined

Last edited by Quadraxas; 09/25/09 22:27.

3333333333