# Missing DetourCrowdAIController in C++

**URL:** <https://forums.unrealengine.com/t/missing-detourcrowdaicontroller-in-c/474481>\
**Category:** C++\
**Tags:** aicontroller, detour-crowd-ai-cont, unreal-engine, question, CPP\
**Created:** [November 14, 2020, 9:26pm UTC](https://forums.unrealengine.com/t/missing-detourcrowdaicontroller-in-c/474481 "2020-11-14T21:26:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![chrudimer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chrudimer/32/918651_2.png) [@chrudimer](https://forums.unrealengine.com/u/chrudimer)\
**Post date:** [June 22, 2021, 1:23pm UTC](https://forums.unrealengine.com/t/missing-detourcrowdaicontroller-in-c/474481/3 "2021-06-22T13:23:50Z")

</div>

Hi, in C++ you set it to use the UCrowdFollowingComponent instead of only the PathFollowingComponent. So in the constructor of your AI controller you do this

```
ABaseAIControllerCPP::ABaseAIControllerCPP(const FObjectInitializer& ObjectInitializer)

	: Super(ObjectInitializer.SetDefaultSubobjectClass<UCrowdFollowingComponent>(TEXT("PathFollowingComponent"))) {

}

```

and ofc replace ABaseAIControllerCPP with your own.

---

_[View the full topic](https://forums.unrealengine.com/t/missing-detourcrowdaicontroller-in-c/474481)._
