Hello
I want to make an enemy ai for my game with multiple features but right now I’m working on patrolling and found a system I like. It makes it so the enemy patrols in random spots along the path and uses raycasts to turn the ai when it stops to face the open area. It chooses the spot to go to based on visibility and which is easily accessible. My only issue is that I dont understand state trees or really anything with ai. How can I replicate this system.