# How to use onweaponfire 

**URL:** <https://forums.unrealengine.com/t/how-to-use-onweaponfire/2363669>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 28, 2025, 2:18am UTC](https://forums.unrealengine.com/t/how-to-use-onweaponfire/2363669 "2025-02-28T02:18:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slump](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slump](https://forums.unrealengine.com/u/Slump)\
**Post date:** [February 28, 2025, 2:18am UTC](https://forums.unrealengine.com/t/how-to-use-onweaponfire/2363669/1 "2025-02-28T02:18:05Z")

</div>

I am making a furturistic gun map, but i have to do scripting to create gun sound effect for the weapon. how do i use verse to create sounds for my weapons.

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [February 28, 2025, 3:20am UTC](https://forums.unrealengine.com/t/how-to-use-onweaponfire/2363669/2 "2025-02-28T03:20:29Z")

</div>

Personally I like the gameplay ability system. If setup properly in c++ you can find the “firing ability” to whatever input action you choose. In the ability you can call the play sound, weapon animation and spawn the bullet projectile…and more. There are many YouTube tutorials on setting this up. I used Alamars Dev Domain series on GAS to set the system up in c++

---

<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:** [February 28, 2025, 9:20am UTC](https://forums.unrealengine.com/t/how-to-use-onweaponfire/2363669/3 "2025-02-28T09:20:53Z")

</div>

You can use [Input Trigger Devices](https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-input-trigger-devices-in-fortnite-creative) along with conditional buttons to know when the player shoots, you won’t be able to know if they have ammo in the magazine still though

[Ranged weapons](https://trello.com/c/n94y7ND9/171-ranged-weapons) coming end of year otherwise
