Extract and set up the Universal Unreal Engine 4 Unlocker Download and extract the Universal Unreal Engine 4 Unlocker. Run UuuClient.exe. Click 'Select' to select the process to inject the DLL into. Once the injection succeeds, press in game to bring up the UE4 console (one press brings up mini-console, two presses will show the full thing). Rules for attaching components. Unreal Engine is the world’s most open and advanced real-time 3D creation tool. Continuously evolving to serve not only its original purpose as a state-of-the-art game engine, today it gives creators across industries the freedom and control to deliver cutting-edge content, interactive experiences, and immersive virtual worlds. Unreal Engine 4 is a collection of game development tools capable of producing everything from 2D mobile games to AAA console titles. It is the engine behind titles such as ARK: Survival Evolved, Tekken 7 and Kingdom Hearts III. Developing in Unreal Engine 4 is very simple for beginners. Unreal Engine 4's handling of Ark has us excited to see what kind of adventure survival games will be created using the upcoming UE5, especially after that glorious tech demo. 13 Conan Exiles Another survival title that makes great use of UE4 is Conan Exiles, and in some ways, the visuals are even better than those in Ark.
Unreal Engine 4’s pathfinding and navigation system gives all users a robust and easy to use system for adding AI controlled characters into their games. With the default settings, navigation is static preventing changes at runtime.
Dynamically generating the nav mesh (Navigation Mesh) and adjusting it during runtime has very little documentation which is why this guide has been created.
In this guide we will be working through how to enable runtime navmesh generation and how to affect the navmesh with navigation modifiers.
Switching to Runtime Generation
Firstly, to enable this feature open up your Project Settings.
From here find and click the Navigation Mesh tab under the Engine category.
In the Navigation Mesh settings set the Runtime Generation setting to Dynamic.
Unreal Engine 4 Ports
Adding Navigation Modifiers
Any actor component that has collision can be setup to cut holes inside the navigation mesh.
To enable this feature, I created a new actor named NavigationBlocker.
This actor stops AI controlled actors from moving in the red area that the collision occupies.
Furthermore, the NavigationBlocker moves around the level, regenerating the navmesh to reflect the changed environment.
To keep it simple, this actor only has a Box Collision.
Click the box collision component from the components list (shown above) and find the navigation category in the details panel on the left.
Tick the Dynamic Obstacle checkbox and set the area class to obstacle.
Area Class
The area class determines how AI controlled actors will react to the modifier.
- None will not affect the navigation.
- Default will act like a normal area of navmesh.
- LowHeight blocks all AI from navigating through it due to the height restriction.
- Null blocks all navigation inside it.
- Obstacle tells the AI that this area can be navigated through but only if there are no other possible ways to move to the target.
Example
The AI actor now dynamically adjusts to walk around the box.
To download the project files for this tutorial click below:
Conclusion
Unreal Engine 4 Player Character
With this setup your AI controlled actors will now react to the changing environments.
This system is essential for creating city building or strategy games.
A few examples of games that would use an equivalent system would be Age of Empires, Starcraft and Command and Conquer.