vec_set(mouse_pos,mouse_cursor);
target_from.x = mouse_pos.x;
target_from.y = mouse_pos.y;
target_from.z = 0;
vec_for_screen (target_from, camera);
target_to.x = mouse_pos.x;
target_to.y = mouse_pos.y;
target_to.z = mouse_range;
vec_for_screen (target_to, camera);
c_trace (target_from.x, target_to.x, IGNORE_ME | IGNORE_YOU | IGNORE_PASSENTS | IGNORE_MODELS | IGNORE_PASSABLE | USE_BOX); //vc_set (my.x, target.x); // and place the red target model to the proper spot on the terrain
vec_set(TARGET,target.x);