I've seen the question asked countless times. Look up PICK SCREEN() and PICK OBJECT() in the help file, that'll convert you're mouse position into a 3D position, regardless of it's angle. With the 3D Position you can get the ground height of the matrix using the x and z coordinates you now have, getting you the ending y position of each unit. Usually people cant find what they want from the search out lf lazyness, when in reality it would take a quarter of the time to find the answer yourself instead of waiting for someone to respond. Yes, its easier to just ask again, but then its easier for us to just ignore the thread.
Projects: Online CTF Game | Newcommer's Guide to FPS's