Why don’t you just send your AI off into a random direction and check within the Line Of Sight whether they found the desired resource every tick? If the AI doesn’t find X resource within Y Units of Z point then return or go in a different direction.