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

yea and it doesn’t work, im here from google responding to this old thread. the solutions above work, yours doesn’t. classic is coming out so dont worry about it too much.