Fix `PlayFireSoundAtLocation` bugs
This commit is contained in:
parent
bd8721a693
commit
9d2d3c0187
|
@ -310,7 +310,7 @@ void APlayerCharacter::OnFire()
|
|||
|
||||
CurrentWeapon->DecrementAmmoCount(1);
|
||||
|
||||
CurrentWeapon->PlayFireSoundAtLocation(GetActorLocation());
|
||||
CurrentWeapon->PlayFireSoundAtLocation(this->GetTransform().GetLocation());
|
||||
|
||||
// TODO: Play some animation here
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ void AWeapon::SetFireSound(USoundBase* USoundBase)
|
|||
|
||||
void AWeapon::PlayFireSoundAtLocation(FVector location)
|
||||
{
|
||||
if (!FireSound)
|
||||
if (FireSound)
|
||||
{
|
||||
UGameplayStatics::PlaySoundAtLocation(this, FireSound, location);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue