Frictional Games Forum (read-only)
AI Turning Help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html)
+--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html)
+---- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-80.html)
+---- Thread: AI Turning Help (/thread-45498.html)



AI Turning Help - mysteryman141 - 04-29-2016

Every time my AI tries to turn around or at corners it seems to make a broad sweep across and will frequently get stuck on the edges of doors. Is there any way to prevent this? Is their also a special technique when placing path nodes? Any help would be appreciated!would be appreciated! I'm using the Akers monster.


RE: AI Turning Help - WALP - 04-29-2016

First of all make sure you map is running using freshly generated cache files, especially the one for pathfinding. Without it the AI will navigate dumbly only thinking 1 node ahead. I believe the profile setting "ForceCacheLoadingAndSkipSaving" is the way to configure this.

Think from the perspective of the AI, it does not see the map, it's entire world is made of pathnodes, so if the closest pathnode is on the other side of a wall it may try to walk through it, and likewise it will need some pathnodes to guide it around corners and other complicated spaces.

I only did this with the infected construct, but in the AI script file there should be the option to set at what distance collision detection will kick in and make the AI avoid bumping into things. As well you may want to consider making a custom ent for the monster, and making it's collision cylinder smaller if you have it going through tight spaces.
Doing this made the infected robot navigate tight spaces a lot better for me in FUGA.


RE: AI Turning Help - mysteryman141 - 04-30-2016

I increased the amount of path nodes significantly and that seemed to help a lot, thanks for the tips!