Search Unity

Enemy AI that moves around one location before heading to another?

Discussion in 'Navigation' started by Schindlerhailey, Dec 24, 2020.

  1. Schindlerhailey

    Schindlerhailey

    Joined:
    Feb 3, 2020
    Posts:
    16
    I am working on a stealth game that utilizes an outdoor area and multiple different buildings. I want the randomly spawned enemies to walk around each building, then move to the next and walk around inside of there. Any suggestions?
    I'm thinking I could set waypoints for each house in an array or list and then he shuffles through those before moving on. But, is there a better way? Is there a way to tell him to walk around in this specific set of coordinates before moving to this specific set?
    I'm not too experienced with code so any examples or videos to look up would be great!