EDIT CSR Kryssar:
Also when trying to repro this issue we found out that medic when trying to do ordered action ignores vertical distance of target. This is probably general issue but can be very easely reproduce particulary with medic. For example when you are on the roof and he is not in the building he is likely to move as close as he can outside of building an then teleport-skip to ordered target to heal it.