AI should only be able to move if player doesnt see it

Just use a bool to enable/disable movement. Set the bool whenever the player looks at the ai.