AzureAbyss/Source/the_twilight_abyss/MerchantRaw/MerchantTriggerBox.cpp
MH261677 25fa3d3414 Started working on Merchant Logic
Started to create the base merchant trigger box to start making the interaction between player and merchant npc
2022-11-10 01:09:02 +00:00

40 lines
851 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "MerchantTriggerBox.h"
//makes it so the component script is initialized when game starts
UMerchantTriggerBox::UMerchantTriggerBox()
{
PrimaryComponentTick.bCanEverTick = true;
}
void UMerchantTriggerBox::BeginPlay()
{
Super::BeginPlay();
UE_LOG(LogTemp, Warning, TEXT("TRIGGER SPAWNED"));
}
void UMerchantTriggerBox::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
}
void UMerchantTriggerBox::PlayerCheck()
{
/*
TODO:
UNCOMMENT THE UPRIMITECOMPONENT OUT
FILL OUT THE COMPONENTOVERLAP FUNCTION SO IT DISPLAYS THE PLAYERS NAME WHEN THEY ENTER IT
*/
//UPrimitiveComponent TriggerOverlap = BeginComponentOverlap();
}