Navigation around pawns that are dynamic obstacles

So by playing around a bit I found out that pawns have their own option “CanAffectNavigationGeneration” under the class defaults tab… -.- Activating this allows my AI to move around player pawns.

The minion pawns however shouldn’t have this activated however, as pointed out in this post. They basically block themselves from navigating correctly as they block the navigation around them. This’ll be solved by configuring CrowdControl in the Project Settings.

So all the pawns and their colliders should have CanEverAffectNavigation set to false. They should not be configured as DynamicObstacles either. Instead, player pawns should have the above mentioned configuration and AI pawns should avoid other AI using the crowd control system. Therefore AI pawns also need to have a DetourCrowdAIController (or one that inherits from it) possess them.

I thought I’ll leave it here if anyone else runs into this and doesn’t understand how this is done. I really had trouble finding anything clear on the internet and most of the tutorials didn’t seem to point this out.

Cheers
Lord

6 Likes