Get terrain surface points

I want to know if its possible, at any random given map, find the surface Z points of the terrain at a previously known [X,Y] position.

For example:

65635-example.png

I want to get the red points Z coordinates.

PS: Sorry for my bad english.

Hi man , you can use a line trace by channel or by object. adding a list to the actors to ignore, like trees and monsters.
And cast the ray from X,Y, + a high enough Z to a X,Y - a lower enough Z.
you can break the hit , and read the impact location , get the Z from there, its your world Z.

Yep, I figured that it is the only way to do it is using trace lines, apparently.

Thanks.