#include "FPSExtractionZone.h"
// Sets default values
AFPSExtractionZone::AFPSExtractionZone()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
OverlapComp = CreateDefaultSubobject<UBoxComponent>(TEXT("OverlapComp"));
OverlapComp->SetCollisionEnabled(ECollisionEnabled::QueryOnly);
OverlapComp->SetCollisionResponseToAllChannels(ECR_Ignore);
OverlapComp->SetCollisionResponseToChannel(ECC_Pawn, ECR_Overlap);
OverlapComp->SetBoxExtent(FVector(200.f));
RootComponent = OverlapComp;
OverlapComp->SetHiddenInGame(false);
OverlapComp->OnComponentBeginOverlap.AddDynamic(this, &AFPSExtractionZone::HandleOverlap);
}
// Called when the game star