How do I get the distance between an actor and the terrain?

If you use BPs then this might glide you:
PL4509A4E9595F8B69#t=1714

Well i just watched video i post you (which i seen it in past but i for got what exactly it was) and based on it you need to use tracing to detect ground :slight_smile:

I have a camera for RTS game and I want to keep the camera at a certain height above the terrain and also within certain world space limits. I need a way of obtaining the vertical distance between them. How can I achieve this?

Managed to figure it out! I use a trace from the camera’s vector down to a vector using same x and y, then set z to -1000 or whatever to get a vertical trace straight down, which returns the point at which they collide. From there, I calculate the difference.

thanks . I managed to figure out a similar method - if not the same - as in this video and it works wonderfully. have posted my blueprint as answer for future reference.