Hello,
Take a look at this tutorial provided by the community:
Hi, how to make waypoint enemy patrol with view radius?