Merge New Animations #2

Merged
baz merged 13 commits from animations-mk2 into master 2024-02-01 02:18:26 +01:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 957da3946a - Show all commits

View File

@ -759,3 +759,13 @@ bool APlayerCharacter::GetPressedJump()
{
return jumpPressed;
}
bool APlayerCharacter::GetCrouched()
{
if (UNakatomiCMC* cmc = GetCharacterMovementComponent())
{
return cmc->IsCrouching();
}
return false;
}

View File

@ -221,6 +221,9 @@ public:
UFUNCTION(BlueprintCallable)
bool GetPressedJump();
UFUNCTION(BlueprintCallable)
bool GetCrouched();
protected:
virtual void CalculateHits(TArray<FHitResult>* hits) override;