Maybe this code will work properly for your object-placer script.

Code:
 temp.x = mouse_pos.x;
temp.y = mouse_pos.y;
temp.z = camera.z / cos(camera.tilt);
vec_for_screen(temp,CAMERA);
c_trace(camera.x,temp,ignore_passable);




Fratch - Newer statistics panel for GameStudio