Updated TempCharacter.cpp

Fixed the tracedistance not defaulting back once the player exits the shop
This commit is contained in:
MH261677 2023-01-16 21:25:54 +00:00
parent 355dd06aae
commit e15a7076c4
2 changed files with 4 additions and 2 deletions

View File

@ -150,6 +150,7 @@ void ATempCharacter::InputEnabler()
GetWorld()->GetFirstPlayerController()->bShowMouseCursor = false; GetWorld()->GetFirstPlayerController()->bShowMouseCursor = false;
GetWorld()->GetFirstPlayerController()->bEnableClickEvents = false; GetWorld()->GetFirstPlayerController()->bEnableClickEvents = false;
GetWorld()->GetFirstPlayerController()->bEnableMouseOverEvents = false; GetWorld()->GetFirstPlayerController()->bEnableMouseOverEvents = false;
TraceDistance = 200;
ThisCamera = Cast<UCameraComponent>(this->FindComponentByClass<UCameraComponent>()); ThisCamera = Cast<UCameraComponent>(this->FindComponentByClass<UCameraComponent>());
if (ThisCamera == nullptr) if (ThisCamera == nullptr)
{ {

View File

@ -69,6 +69,7 @@ public:
int OriginalCameraFOV; int OriginalCameraFOV;
UFUNCTION(BlueprintCallable, Category= "Items") UFUNCTION(BlueprintCallable, Category= "Items")
void BuyItem(); void BuyItem();
}; };