1)

result = c_trace(my.x,vector(my.x,my.y,my.z-5000),IGNORE_ME | IGNORE_PASSABLE | USE_BOX);

my.z -= result * (result > 0);

2) Use "target" instead of "hit"

I hope it helped smile

Last edited by Claus_N; 07/29/09 22:22.