# Change location of sound

**URL:** <https://qa.fmod.com/t/change-location-of-sound/14070>\
**Category:** Unreal Engine\
**Created:** [August 29, 2018, 7:55am UTC](https://qa.fmod.com/t/change-location-of-sound/14070 "2018-08-29T07:55:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eneco](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/eneco/32/6046_2.png) [@Eneco](https://qa.fmod.com/u/Eneco)\
**Post date:** [August 29, 2018, 7:55am UTC](https://qa.fmod.com/t/change-location-of-sound/14070/1 "2018-08-29T07:55:26Z")

</div>

Hey folks,

I’m working on a shooter right now and want to add some bullet impact sounds based on the material the player is shooting at. The different materials should be changed by a parameter. The shooting is done via line trace. This is what I got so far:

![]()[https://imgur.com/ZB3akOZ](https://imgur.com/ZB3akOZ)

Everything is working fine except the fact, that the sounds are played back at the player’s location, as the FMOD audio component is attached to the player. So I tried to change the location of the sound using this:

![]()[https://imgur.com/ho6KoZC](https://imgur.com/ho6KoZC)

Now the sounds are located at the impact point of the line trace, but the parameter change is not working, as the “Play Event Attached” node is a one shot sound, that doesn’t take parameter changes into account.

Is there a way to change the location of a sound AND manipulate it with a parameter?

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [August 30, 2018, 4:19am UTC](https://qa.fmod.com/t/change-location-of-sound/14070/2 "2018-08-30T04:19:22Z")

</div>

In your second picture, you are calling ‘Set Parameter’ and ‘Play Event Attached’ on different event instances.

What I would recommend is using ‘Play Event at Location’ which plays a one-shot and returns an FMODEventInstance (instead of using a whole new component) and set the parameter on that.

[https://imgur.com/VxuGmc6](https://imgur.com/VxuGmc6)

Or using the return node of Play Event Attached (which returns a new FMODAudioComponent) to set the parameter.

---

<div class="post-metadata">

**Author:** ![Eneco](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/eneco/32/6046_2.png) [@Eneco](https://qa.fmod.com/u/Eneco)\
**Post date:** [September 12, 2018, 9:36am UTC](https://qa.fmod.com/t/change-location-of-sound/14070/3 "2018-09-12T09:36:44Z")

</div>

Thank you very much! Works like a charm. I didn’t know it was possible to set a parameter on one shot events. Very useful
