Bugfix Pointer Retaining Position After Combat Has Ended

This commit is contained in:
Philip W 2023-04-26 03:51:17 +01:00
parent 0c13de4668
commit 15d2734c52
3 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@ -94,6 +94,11 @@ void ATempCharacter::Sneak()
} }
void ATempCharacter::ResetWidgetPointer() const
{
WidgetPointer->SetWorldLocationAndRotation(FVector(0, 0, 0), FRotator(0, 0, 0).Quaternion());
}
// Called every frame // Called every frame
void ATempCharacter::Tick(float DeltaTime) void ATempCharacter::Tick(float DeltaTime)
{ {

View File

@ -19,6 +19,7 @@ class THE_TWILIGHT_ABYSS_API ATempCharacter : public ACharacter
public: public:
// Sets default values for this character's properties // Sets default values for this character's properties
ATempCharacter(); ATempCharacter();
void ResetWidgetPointer() const;
protected: protected:
// Called when the game starts or when spawned // Called when the game starts or when spawned