Instead of the AND boolean try to check if it is a player first and then check for sense update. It can fail if it is not a player but another AI that it is sensing, and then trigger the sight loss.
Instead of the AND boolean try to check if it is a player first and then check for sense update. It can fail if it is not a player but another AI that it is sensing, and then trigger the sight loss.