Bugfix Able to Open Dialogue in Merchant
This commit is contained in:
parent
276a0c5ff4
commit
81a306f7b0
@ -4,6 +4,7 @@
|
|||||||
#include "InteractNPC.h"
|
#include "InteractNPC.h"
|
||||||
#include "DialogueNPC.h"
|
#include "DialogueNPC.h"
|
||||||
#include "Camera/CameraComponent.h"
|
#include "Camera/CameraComponent.h"
|
||||||
|
#include "the_twilight_abyss/PlayerTemp/TempCharacter.h"
|
||||||
|
|
||||||
|
|
||||||
// Sets default values for this component's properties
|
// Sets default values for this component's properties
|
||||||
@ -47,6 +48,7 @@ void UInteractNPC::Interact()
|
|||||||
if (HitResult.GetActor()->Tags.Contains("NPC"))
|
if (HitResult.GetActor()->Tags.Contains("NPC"))
|
||||||
{
|
{
|
||||||
//DrawDebugLine(GetWorld(), Start, End, FColor::Green, false, 5.0f, 0, 10.0f);
|
//DrawDebugLine(GetWorld(), Start, End, FColor::Green, false, 5.0f, 0, 10.0f);
|
||||||
|
if (Cast<ATempCharacter>(GetOwner())->bShopKeeperText) return;
|
||||||
UDialogueNPC* DialogueNPC = HitResult.GetActor()->FindComponentByClass<UDialogueNPC>();
|
UDialogueNPC* DialogueNPC = HitResult.GetActor()->FindComponentByClass<UDialogueNPC>();
|
||||||
if (DialogueNPC->bIsInDialogue)
|
if (DialogueNPC->bIsInDialogue)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user