VECTOR mouse3d_vec;

action b_gun()
{
// set(my,PASSABLE);
VECTOR temp;
while(my)
{
my.tilt = clamp(0, my.tilt, 0);
vec_for_vertex(me.x, basic, 365);
vec_to_angle(my.pan,mouse_dir3d);
vec_set(temp,mouse_dir3d);
vec_scale(temp,1000); // set a range
vec_add(temp,mouse_pos3d);
c_trace(mouse_pos3d,temp,IGNORE_MODELS|IGNORE_SPRITES);
vec_set( mouse3d_vec , target );
wait(1);
}
}

This is what that action currently looks like, it has not changed my problem,
(Turret still aims up and down) what did i do wrong?
thanks
rtsgamer706