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 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();