bool ANimModCharacter::IsCrouched() const { UCharacterMovementComponent* MoveComp = GetCharacterMovement(); if (MoveComp) return MoveComp->IsCrouching(); return bIsCrouched; }
void ANimModCharacter::OnUnCrouch() { UCharacterMovementComponent* MoveComp = GetCharacterMovement(); if (MoveComp && MoveComp->IsCrouching()) UnCrouch(); }