Unreal 4.20: IsOverlappingActor always returns 0/false

I am trying the code from this lecture but isOverlappingActor alwars returns false:

if (PressurePlate->IsOverlappingActor(ActorThatOpens)){
        OpenDoor();
    }

Is this a known bug or did I overlook something?

I found my error: I never set ActorThatOpens, added this line to BeginPlay():

    ActorThatOpens = GetWorld()->GetFirstPlayerController()->GetPawn();

Privacy & Terms