Thanks for the reply, Matt.
I tried that but no joy… Added a line to set the collision response too, but didn’t help. The player actually collides with it (pic below). This is what it looks like now:
PlateTrigger = CreateDefaultSubobject<UBoxComponent>(TEXT("Pressure plate trigger"));
PlateTrigger->SetupAttachment(RootComponent);
PlateTrigger->SetGenerateOverlapEvents(true);
PlateTrigger->SetCollisionResponseToAllChannels(ECR_Overlap);
PlateTrigger->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
PlateTrigger->SetCollisionProfileName("Pawn");
PlateTrigger->OnComponentBeginOverlap.AddDynamic(this, &ABasePressurePlate::OnOverlapBegin);
PlateTrigger->OnComponentEndOverlap.AddDynamic(this, &ABasePressurePlate::OnOverlapEnd);
I tried using [FONT=courier new]SetCollisionProfileName(“OverlapAll”) instead, which stops the player colliding with the BoxComponent, but still doesn’t fire the OnOverlapBegin() events.
