Remove the ability to Fire when Sprinting
This commit is contained in:
parent
f40ed3f1a7
commit
6072f824ce
|
@ -245,7 +245,7 @@ void APlayerCharacter::EndJumpCallback(const FInputActionInstance& Instance)
|
|||
|
||||
void APlayerCharacter::BeginFireCallback(const FInputActionInstance& Instance)
|
||||
{
|
||||
if (CurrentWeapon == nullptr || CurrentWeapon->GetCurrentWeaponStatus()->GetValue() != Idle)
|
||||
if (CurrentWeapon == nullptr || CurrentWeapon->GetCurrentWeaponStatus()->GetValue() != Idle || IsSprinting)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue