Help with detecting if player is in shadows

How do I get it to not draw the line? Or does it automatically do that on build?
Sorry for asking, but I’m pretty new at using UE4 so I don’t know what it can and can’t do as far as this stuff goes.