A Solution For BuildBox AI
Please read the buildbox main thread for more information
https://www.buildbox.com/forum/index.php?threads/ai-system-avoid-walls.21182/
AI System Stages
1-Patrol-Detect-Action(Shoot)
2-Patrol-Shoot
3-Patrol-Detect
4-Always Detect-Shoot
5-Always Detect
1- Multiply Objects to detect...
the detecting state can be activated by many objects, not only one or only the Target
2-Live Detection, the "Move Toward Object" active in delay node or frame by frame
Don't worry 3-THE System is Fully Optimized
4-Find the Shortest Path
5-Option to Prefer Avoid Walls in Patrol State(Random Points)
when the next Point is detected behind Walls, the AI Finds Anther Point
6-Delay Controller Everywhere
you can set a delay between almost every transition inside the system like
between patrol cycles
between every transition between states and stages
between every repeat actions
between every update path
between trigger action and first active action
between first active action and repeat action
and more.....
7- Separation
the AI Move, Rotate, Shoot, and AI Main System nodes are separated to make it easy to modify