Sample in attachment displays entity's distance from ground, assuming entity's rotation in x- and y-axes stays somewhat neutral. For a solution having the distance independent from entitys's rotation, a tagpoint can be set to follow the entity, in which case distance should be measured from the tagpoint.