I want to create an AI system that utilizes nodes as waypoints for navigation. The AI initially selects the closest node as its target location. However, when the player is detected, the AI switches to a chasing behavior and identifies the node closest to the player. Instead of directly heading towards the player, the AI intelligently follows the node path that leads to the player’s position. The AI will continue to follow the node path until it reaches the player’s location.
In summary, a AI system that is designed to navigate towards the player by dynamically selecting nodes and following a path that leads to the player’s position. when reached to stop following the nodes until the player is out of the range.
i know its asking for a lot but i need a lot of pointers to make the ai!
Understanding how blackboards work is important. Essentially it is a system that allows for your ai to do specific actions when under a state. Unreal engine uses blackboards for advanced AI.
For example you establish 4 states. Walking, Scouting, Aggrevated, and Hostile.
All of these states have an action tree behind them. Walking simply says to walk around these specific points, then occasionally switch to Scouting state. Scouting state stands in place and can be switched into aggravated state once something initiated. Lastly our hostile action is just as it implies. Attacking the target. If the target comes out of distance our character will return back to an aggravated state, slowly going back to its original states.
Essentially it becomes a big loop of sub loops. The sub loops being the states and actions. Once finished it cycles back in the main loop.
If there are grammatical mistakes it’s because im typing this via phone.