Tag: AI
-
Custom Clustering Algorithm Defining Deadly Areas For NPC in Unreal Engine Game
In this post I will demonstrate my custom implementation of a clustering algorithm in Unreal Engine C++. I used this clustering in my game to determine the deadly areas for NPC to enhance its AI so that NPC could avoid or consider these areas in some other way (e.g. proactively attack the area in a…
-
Applying Custom NavModifierVolume and NavArea_Obstacle With Different Costs During Game in Unreal Engine
The solution I’d like to demonstrate allows to modify Navigation Mesh during game to allow NPC avoid high-cost areas. This is how it looks in game (when debugging NavMesh): The NavModifierVolume was added during a game after an NPC was killed in that area. After that the NPC does not want to come close to…