You can do something like this:

// this code will trace 500 units ahead
vec_set(temp, vector(500,0,0));
vec_rotate(temp, my.pan);
vec_add(temp, my.x);
c_trace(my.x, temp, IGNORE_ME|IGNORE_PASSABLE);