Play Random Sound From Array
CallablePlayRandomSoundFromArrayPlays a random sound from an array at a world location.
Type: Callable (has execution pins)
Category: Fortuna|Audio Helpers
Keywords: audio helpers
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| WorldContext | UObject* | — | WorldContext parameter |
| Sounds | TArray<USoundBase*> | — | Sounds parameter |
| Location | FVector | — | Location parameter |
| VolumeMultiplier | float | 1.0 | VolumeMultiplier parameter |
| PitchMultiplier | float | 1.0 | PitchMultiplier parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | UAudioComponent* | ReturnValue output |
Example Use Cases
Example 1
Randomize footstep sounds from a set.
Example 2
Vary hit impact sounds for natural feel.