i want to create some lvl editor like in trackmania

the things is how to get te point were the mouse is on the right hight

the rest i think i can handle myself but the problem is vec_for_screen only gots a distance instead i want to have it on a certain hight like z = 0 ore somting

hope you understand me en that some can help me