Is there a way to 'get' the half height value of the other Actor's capsule collision?

When in contact, I want to calculate the other Actor’s direction. (if it’s infront of me, top of me, bottom of me etc).
To know if the other Actor is under the player’s feet, I need to get the half height value of the other actor’s capsule collision.

Is there a way to retrieve this value??

You do it like this:

First you need reference to other actor, (get player pawn, get all actors of class etc.)
Then you need to cast to proper class
then you just read or write to that value

But then you write about other actor location. For that use: AActor::GetActorBounds | Unreal Engine Documentation

And for knowing where it is located you need some vector math.