Yes, you need to do a check between the regular scene depth and the custom depth. Whenever scene depth is lower than custom depth, the outline shouldn’t be rendered.
I did that and it works great… now for the “but” part - I’d only want the flashlight to overlap the outline, I like it going through other geometry in the scene… or perhaps, static geometry only…