# How to switch weapon system by (Mouse scroll wheel)

**URL:** <https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055>\
**Category:** Character & Animation\
**Tags:** replay-system, unreal-engine, question\
**Created:** [July 12, 2020, 2:29pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055 "2020-07-12T14:29:43Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnantShah001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnantShah001](https://forums.unrealengine.com/u/AnantShah001)\
**Post date:** [July 12, 2020, 2:29pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/1 "2020-07-12T14:29:43Z")

</div>

Hi guys , I am try to make switch weapon system by mouse scroll wheel . can any buddy help me to solve my problem

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 12, 2020, 3:25pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/2 "2020-07-12T15:25:24Z")

</div>

Since you’ve included _absolutely_ no details about the system, here’s a generic response 😉

 ![306967-annotation-2020-07-12-162705.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/c/73c933d1c6e79747f13453c36a3d60b761216d58.jpeg)

---

<div class="post-metadata">

**Author:** ![AnantShah001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnantShah001](https://forums.unrealengine.com/u/AnantShah001)\
**Post date:** [July 20, 2020, 5:22pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/3 "2020-07-20T17:22:16Z")

</div>

But in my project equip or unequip is from Skeleton socket, so how do I use this system in my project.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 20, 2020, 10:01pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/4 "2020-07-20T22:01:08Z")

</div>

How can anyone, apart from you, know how things are set up in your project? You’ve included _no_ details whatsoever (again), giving us next to no chance of helping you ☹

* * *

The above is not a _system_ per se - it simply allows you to retrieve an actor from an array in a cyclical fashion using the mouse scroll wheel.

---

<div class="post-metadata">

**Author:** ![AnantShah001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnantShah001](https://forums.unrealengine.com/u/AnantShah001)\
**Post date:** [July 21, 2020, 4:36am UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/5 "2020-07-21T04:36:15Z")

</div>

In my project have three weapon socket by help I am easily Equipping or Equipping a weapon with animation but i am creating one more thing swap weapon system by mouse wheel

---

<div class="post-metadata">

**Author:** ![AnantShah001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnantShah001](https://forums.unrealengine.com/u/AnantShah001)\
**Post date:** [April 27, 2022, 7:58am UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/6 "2022-04-27T07:58:16Z")

</div>

![Desktop Screenshot 2022.04.27 - 13.33.11.26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/c/65c75ec807579b3175887fc0bbfab3a46e71bc17.jpeg)

Now this is my system.  
So how can I apply weapon switch . Now you can give me any solution for that

> **[weapon switch mouse scroll wheel posted by Anant Shah | blueprintUE |...](https://blueprintue.com/blueprint/ndnqells/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![AnantShah001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnantShah001](https://forums.unrealengine.com/u/AnantShah001)\
**Post date:** [April 27, 2022, 8:09am UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/8 "2022-04-27T08:09:59Z")

</div>

I am already do it but it’s not working

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 27, 2022, 8:10am UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/9 "2022-04-27T08:10:13Z")

</div>

The solution is up there, adapt it to your needs. Also, 2 years ago… Persistence pays off, I see.

---

<div class="post-metadata">

**Author:** ![AnantShah001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnantShah001](https://forums.unrealengine.com/u/AnantShah001)\
**Post date:** [April 27, 2022, 8:23am UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/11 "2022-04-27T08:23:31Z")

</div>

Can you see my project .Because my character again and again equip same weapon not any other weapon. so you can give my problem solution

---

<div class="post-metadata">

**Author:** ![freshkosose7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@freshkosose7](https://forums.unrealengine.com/u/freshkosose7)\
**Post date:** [February 2, 2023, 7:50pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/12 "2023-02-02T19:50:13Z")

</div>

Hi there. Hopefully you can help with the same thing. I have keys 1,2,3 already set to switch the weapons but how would I add a mousewheel option to this as well to switch weapons?

 ![Screenshot_23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/2/7a2a4d3385719e1085a7863a51012b48f8f418f6.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 2, 2023, 7:59pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/13 "2023-02-02T19:59:46Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/9/0291d825618013ce249fd3bb58d1b5eb60f9552f.jpeg)

Make sure your existing script sets the Next Weapon integer to 0,1,2… respectively so both methods can work in tandem.

---

<div class="post-metadata">

**Author:** ![freshkosose7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@freshkosose7](https://forums.unrealengine.com/u/freshkosose7)\
**Post date:** [February 13, 2023, 5:17pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/14 "2023-02-13T17:17:08Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Ethan\_L\_Padron1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ethan_l_padron1/32/627206_2.png) [@Ethan\_L\_Padron1](https://forums.unrealengine.com/u/Ethan_L_Padron1)\
**Post date:** [May 22, 2023, 3:27pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/15 "2023-05-22T15:27:06Z")

</div>

Everynone,

Thanks for your help, the info provided really got me moving, I do have a couple of bugs unfortunately I need help with, for my experience is still in beginner. I have 3 weapons and 3 different animations. I can only carry two weapons and I want to switch between the two weapons I am carrying, is there some thing I can implement to the code I have in the photo

 ![Code](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/f/fafe42bfa32a83c4739d246b97d757133150ebf2.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 23, 2023, 12:42pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/16 "2023-05-23T12:42:02Z")

</div>

> [@Ethan\_L\_Padron1](#):
>
> I can only carry two weapons and I want to switch between the two weapons I am carrying

If that’s the case, the above is not really necessary, perhaps this is enough:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/e/3de67422cf6b273620927e61c3c33dd3135d2e37.png)

---

<div class="post-metadata">

**Author:** ![Ethan\_L\_Padron1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ethan_l_padron1/32/627206_2.png) [@Ethan\_L\_Padron1](https://forums.unrealengine.com/u/Ethan_L_Padron1)\
**Post date:** [July 25, 2023, 9:00pm UTC](https://forums.unrealengine.com/t/how-to-switch-weapon-system-by-mouse-scroll-wheel/468055/17 "2023-07-25T21:00:02Z")

</div>

Thanks for the reply I will try that out, I do appreciate the response, take care.
