Hi,
I have a game which uses Procedural Generation for the floor. Every now and then, I have these bots that spawn in order to shoot the player. The problem is, I want to make the bots move a specific units forward before shooting the player.
On searching for an answer, I could only find the use of Navigation Mesh for movement. However, since there is nothing at the start, there is no way of generating a NavMesh.
I tried the ‘Add Impulse’ Node but that pushes the bot endlessly.
Splines can also be a nice option to define movement paths for characters. These allow movements that are not just linear and can be created on the fly. You even can check for obstacles when creating splines using linetraces and avoid hitting these by adjusting the splines accordingly.
Have you tried to use Navigation Invoker? It’s an actor component that generates a navmesh around the NPC, and has configurable options. Also, you need to activate this feature in the project settings and add this component to your NPC blueprints.