If you want to be able to set the camera height to the exact height (or relative height) of the terrain, you will, apart from GetLocationZ(), also need a system that Bob666 made some time ago. Basically, warcraft uses some kind of weird interpolations to make the camera move smoothly across uneven terrain. What his system does is generate a camera map, which allows you to get the relative camera offset using a single function (if i remember correctly, it is simply called GetCameraZOffset). I don't have a link, but i know you can find it inside his FlightSim map.