Create a custom navigation system?
Hi everyone. I would like to update the default navigation system, but I don't know where I would make changes. Ideally, I would like to create a new navigation class that is the child of whatever the default navigation class is and tell my AI controller to use the navigation system I just made. The problems I have with the current navigation system is:
1) my AI freaks out if it has to use a nav link proxy to drop off a ledge to follow the player. It takes several seconds of standing at the ledge before the AI drops off of it and by that time the player the AI was supposed to follow is long gone.
2) I cannot tell my AI to jump onto a waist high raised area to pursue the player. Currently, the AI stands at the edge of the flowerbed with the player looking down on it like obi wan saying "I have the high ground"
I couldn't find a way to handle these problems in blueprints, so I'll use C++. I have never used C++ before, but I have used java quite a bit and am going through some tutorials on C++, so I think I can figure things out as I go along once I get started.
1) Create your new class in the header file like this:
2) Add this to the cpp:
3) Add your new class to the DefaultEngine.ini, in the Script/Engine.Engine section:
answered Jan 18 '19 at 03:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here