Hello! Struggling with AIPerception, being chased and hiding in lockers

Sorry for late answer. I managed to detect whether or not the AI can see the player visually.
Right now, this is what’s going on:

This is as far as I get when it comes to being able to detect when the AI is, or isn’t seeing the player. I can’t do anything more with that.

The next step is to essentially figure out how make the codes for having the enemy go to the nearest locker after not seeing me anymore, and then a random locker, functional. This is where I’m completely stuck