Open world cover AI

How would I set this up to work for a open world survival game where my AI hunters will on a random timer attack player or base and I want them to be able to take cover any where on the map behind trees or rocks etc?