Detect when AI Perception loses sight of the player?

You could use the GetActorsPerception-node and use the “Return Value”.
True=Sensed
False=Not Sensed