UnrealScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a gore script"
// Called when the character takes damage void ACharacter::OnTakeDamage(float Damage, FDamageEvent const& DamageEvent, AController* EventInstigator, AActor* DamageCauser) { // Play a random gore sound UGameplayStatics::PlaySoundAtLocation(this, GoreSounds[FMath::RandRange(0, GoreSounds.Num() - 1)], GetActorLocation()); }