Why
I’ve been practicing with PathfindingService for a while now, so I decided to embark on a journey, of making a bot. Not much to say here…
The AI
So, I’ve been playing with PathfindingService for some time now, and I think that I’ve learned a lot. Now I’ve made my own AI with it that I think is actually pretty cool. So, this AI has set waypoints that it can go to. You can add more waypoints or remove waypoints. This AI also detects when it’s destination moves, that means if the waypoint moves to a different location while the AI is trying to go to it, it will redirect it’s path to the new location. It also is able to jump, and climb over obstacles in its way. It also has a feature, if the path gets blocked while they are on the path, it will also redirect on a new path to go around the obstacle, or over if it’s short enough to jump over. You can also add a pathfinding modifier to objects that you want it to avoid completely, this means it can detect kill parts. It also has animations, that you can change to be custom! The script is also compatible with R15 too!
The Config
The AI also has a customizable config for it too! Screenshot below:
Also, I do know that it is AgentRadius, not AgentWidth. My script automatically gets the radius from the width. So, no worry!
You can turn on the showNodes, which shows the path of the AI. In the video I have all of the settings turned on, screenshot above.
Video of the AI
So here is a video of the AI in action. Notice how it jumps, climbs, and redirects new paths.
(I’ll update the video later, but youtube isn’t working for me, so I can’t upload it, and the DevForum doesn’t allow video files larger than 10mb.)
The waypoint system is still work in progress, so the waypoint nodes sometimes don’t update fast enough if you move the waypoint too fast.
If you guys want the script, I might post it as a free model. I also know that this AI isn’t that advanced, but I’m still working on it.