My door opens as soon as I press play and before I even eject from the pawn and associate the OpenDoor component with the Pawn. I moved the DefaultPawn and the pressure plate away from each other and they are not connected so that should not be what triggers it. I even thought that the floor may be the one triggering the opening of the door so I put the pressure plate high in the air so it doesn’t touch anything, but still the door opens automatically as soon as I press play. My code is as shown in the video:
==================
OpenDoor.h
private:
UPROPERTY(VisibleAnywhere)
float OpenAngle = 90.0f;
UPROPERTY(EditAnywhere)
ATriggerVolume* PressurePlate;
UPROPERTY(EditAnywhere)
AActor* ActorThatOpens; // Remember pawn inherits from actor
======================
OpenDoor.cpp:
// Poll the Trigger Volume
// If the ActorThatOpens is in the volume
if (PressurePlate->IsOverlappingActor(ActorThatOpens))
{
OpenDoor();
}
Any ideas why that might be happening?