How can I make Waypoint Patrol with a view radius?

Hi, how to make waypoint enemy patrol with view radius?