# get sound effects when i kill

**URL:** <https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 18, 2024, 12:26am UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828 "2024-01-18T00:26:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Puttdinho](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Puttdinho](https://forums.unrealengine.com/u/Puttdinho)\
**Post date:** [January 18, 2024, 12:26am UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/1 "2024-01-18T00:26:32Z")

</div>

How do i get custom sound effects when i kill someone?

---

<div class="post-metadata">

**Author:** ![JamieDeGamie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamieDeGamie](https://forums.unrealengine.com/u/JamieDeGamie)\
**Post date:** [January 18, 2024, 10:50am UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/2 "2024-01-18T10:50:39Z")

</div>

elimination manager: on elimination → audio player: play  
put your sfx in the audio player and change the audio player to your wanted settings (how loud the sfx is, who can hear it, from how far it can be hear, etc.)

---

<div class="post-metadata">

**Author:** ![inflipssss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@inflipssss](https://forums.unrealengine.com/u/inflipssss)\
**Post date:** [January 30, 2024, 9:43pm UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/3 "2024-01-30T21:43:51Z")

</div>

how can i have multiple ?

---

<div class="post-metadata">

**Author:** ![JamieDeGamie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamieDeGamie](https://forums.unrealengine.com/u/JamieDeGamie)\
**Post date:** [January 30, 2024, 10:23pm UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/4 "2024-01-30T22:23:51Z")

</div>

Place multiple audio players and randomize which one plays using code or the rng device.

---

<div class="post-metadata">

**Author:** ![Timmm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timmm](https://forums.unrealengine.com/u/Timmm)\
**Post date:** [January 31, 2024, 9:33pm UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/5 "2024-01-31T21:33:23Z")

</div>

Hello mate, i am searching for this all day, how do i randomize using rng device?

---

<div class="post-metadata">

**Author:** ![JamieDeGamie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamieDeGamie](https://forums.unrealengine.com/u/JamieDeGamie)\
**Post date:** [February 1, 2024, 9:44am UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/6 "2024-02-01T09:44:43Z")

</div>

Make it pick a number 1-3 and make the winning output 2. Bind your sfx players to on rolled high, one on rolled low and one on winning value

---

<div class="post-metadata">

**Author:** ![Timmm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timmm](https://forums.unrealengine.com/u/Timmm)\
**Post date:** [February 1, 2024, 9:51am UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/7 "2024-02-01T09:51:22Z")

</div>

thank you, so then you only can have 3 sounds without having to use verse?

---

<div class="post-metadata">

**Author:** ![JamieDeGamie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamieDeGamie](https://forums.unrealengine.com/u/JamieDeGamie)\
**Post date:** [February 1, 2024, 4:31pm UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/8 "2024-02-01T16:31:25Z")

</div>

No you can do more. For example, you can bound the rng devices on every output, that instead of playing a sound, another rng device triggers, but the possibilities are finite.

I’ve made a some verse code for you that you can also use. Feel free to ask questions about things that are unclear.

```auto
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org/Random}

#You must place down the RandomSFXPlayer creative device in your island (Found by going to content drawer -> "YourGame" Content -> Creative Devices, just drag it into your map)
#Connect all the devices in the creative device to the corresponding device on your island
RandomSFXPlayer := class(creative_device):
    #Place the elimination manager on your island, you do not have to change any settings in it. 
    @editable EliminationManager : elimination_manager_device = elimination_manager_device{}

    #Add all your audio players (each with a different audio) onto the array in your creative device in your map
#Change the settings of the audioplayers in the device settings to whatever you want (volume, heard by, play location, etc.)
    @editable SFXPlayers : []audio_player_device = array{}

    OnBegin<override>()<suspends>:void=
        EliminationManager.EliminationEvent.Subscribe(PlayerElimination)

    PlayerElimination(Agent:?agent):void=
        if (MaybeAgent := Agent?):
            RandomInt := GetRandomInt(1, 3) #change the '3' to however many sfx you want
            if (RandomAudioPlayer := SFXPlayers[RandomInt - 1]):
                RandomAudioPlayer.Play(MaybeAgent)

```

---

<div class="post-metadata">

**Author:** ![mackan.nu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mackan.nu/32/742150_2.png) [@mackan.nu](https://forums.unrealengine.com/u/mackan.nu)\
**Post date:** [February 1, 2024, 7:07pm UTC](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/9 "2024-02-01T19:07:55Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/1/2a1af6884a447588bcbc1d3b141b29bd431ff6f3.jpeg)

1. Select all sounds that u want.
2. Right click, Create a single cue
3. Then put the cue in a audioplayer.

I think it will play random sound then. 😅
