Hey was just going through the lecture and everytime that I step on the pressure plate with the possessed actor that has been put in the “Actor That Opens” UPROPERTY it crashes and I see the door swing open. Here is my if statement and opendoor.h specifier of the “PawnThatOpens”
.cpp
if (PressurePlate && PressurePlate->IsOverlappingActor(PawnThatOpens)) {
OpenDoor();
}
.h
UPROPERTY(EditAnywhere)
APawn* PawnThatOpens;
some help would be great thanks