# Gun game mode problem

**URL:** <https://forums.unrealengine.com/t/gun-game-mode-problem/2291641>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, question, fortnite\
**Created:** [January 20, 2025, 12:38am UTC](https://forums.unrealengine.com/t/gun-game-mode-problem/2291641 "2025-01-20T00:38:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wspoon12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wspoon12](https://forums.unrealengine.com/u/wspoon12)\
**Post date:** [January 20, 2025, 12:38am UTC](https://forums.unrealengine.com/t/gun-game-mode-problem/2291641/1 "2025-01-20T00:38:59Z")

</div>

Hello, I’m new here, I’m trying to write a gun game script that randomly switches to a different weapon with each kill, but I want to do this by only changing the given weapon, that is, I want the players to be able to use other inventory slots freely. I couldn’t find how to do it in any source, can you help me?

 ![ask5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/e/c6ef5760d0269ffceb73e6f2cbf394a4ac5bd339.png)  
Randomizer look like this rn

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [January 20, 2025, 9:40am UTC](https://forums.unrealengine.com/t/gun-game-mode-problem/2291641/2 "2025-01-20T09:40:30Z")

</div>

Add an [Item Remover Device](https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-item-remover-devices-in-fortnite-creative) that contains all the cycled weapons, then before you grant a new random weapon, trigger the item remover, that way you’ll allow players to have other different weapons

You won’t be able to pick a fixed weapon slot for it however, since this is a user setting

---

<div class="post-metadata">

**Author:** ![wspoon12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wspoon12](https://forums.unrealengine.com/u/wspoon12)\
**Post date:** [January 20, 2025, 7:39pm UTC](https://forums.unrealengine.com/t/gun-game-mode-problem/2291641/3 "2025-01-20T19:39:37Z")

</div>

Should I put this device in my code as editable or should I trigger it from the functions section? I tried to trigger it from the functions section but for some reason I was not successful

 ![ask7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/0/8e0e6823b6c9f4e08f5b5a6ce7caf872de53f58f.png)  
like this?

 ![ask6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/5/115da6251da102cc32a8862901e02159a70f5196.png)  
or like this

thanks for the help

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [January 20, 2025, 9:28pm UTC](https://forums.unrealengine.com/t/gun-game-mode-problem/2291641/4 "2025-01-20T21:28:20Z")

</div>

Triggering from verse before granting the item seems relevant

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 19, 2025, 9:28pm UTC](https://forums.unrealengine.com/t/gun-game-mode-problem/2291641/5 "2025-02-19T21:28:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
