Hi, after implementing the if statement to open the door, my editor crashes when clicking play. It appears to be caused by PressurePlate being null on initialization. I was able to fix this by putting the if statement in another if statement like so
if (PressurePlate)
{
if (PressurePlate->IsOverlappingActor(ActorThatOpens))
{
OpenDoor();
}
}
If anyone else has encountered this problem and has other solutions it would be interesting to hear about them.