# Detour crowd does not work

**URL:** <https://forums.unrealengine.com/t/detour-crowd-does-not-work/375333>\
**Category:** C++\
**Tags:** detour-crowds, unreal-engine, avoidance, question, CPP\
**Created:** [November 3, 2016, 9:00pm UTC](https://forums.unrealengine.com/t/detour-crowd-does-not-work/375333 "2016-11-03T21:00:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AleSpini](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AleSpini](https://forums.unrealengine.com/u/AleSpini)\
**Post date:** [November 3, 2016, 9:00pm UTC](https://forums.unrealengine.com/t/detour-crowd-does-not-work/375333/1 "2016-11-03T21:00:11Z")

</div>

Hi everybody, I am currently having a issue while trying to get the detour crowd component work. This is my code:

```
AParsec42AICharacterController::AParsec42AICharacterController(const FObjectInitializer& ObjectInitializer)
    : Super(ObjectInitializer.SetDefaultSubobjectClass<UCrowdFollowingComponent>(TEXT("PathFollowingComponent")))
{
    enemyToAttack = nullptr;
    gameIsPaused = false;
    pawnMovementDestination = FVector::ZeroVector;
    bAllowStrafe = true;
    moveStatus = EPathFollowingStatus::Idle;
}

```

when I try to move a character towards another, it doesen’t avoid it. The same code has been used on another project for a while without any problem. How can I solve this problem?

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [April 22, 2017, 11:32pm UTC](https://forums.unrealengine.com/t/detour-crowd-does-not-work/375333/2 "2017-04-22T23:32:41Z")

</div>

Have you solved it ?
