How to find if an actor is in front or behind another actor?

Thanks for the explanation Redbox, that did it!