I want to make a advanced ai

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!

thank you for reading.

3 Likes

PathfindingService | Documentation - Roblox Creator Hub will be your best friend.

I do not recommend re-inventing the wheel unless you’re trying to do something impossible with the built-in system, this will spare you a headache.

2 Likes

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.

2 Likes

I did not read your issue. Sorry! Your title decieved me a bit. But I guess I gave you some insight into AI

2 Likes

deleted this cause it repeated the same thing sorry
ages of warfare used what u described btw

1 Like