# trigger WaveAsset Index from BLUEPRINT

**URL:** <https://forums.unrealengine.com/t/trigger-waveasset-index-from-blueprint/1140465>\
**Category:** Audio\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 25, 2023, 11:57am UTC](https://forums.unrealengine.com/t/trigger-waveasset-index-from-blueprint/1140465 "2023-04-25T11:57:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fl0wf1r31](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fl0wf1r31/32/575571_2.png) [@fl0wf1r31](https://forums.unrealengine.com/u/fl0wf1r31)\
**Post date:** [April 25, 2023, 11:57am UTC](https://forums.unrealengine.com/t/trigger-waveasset-index-from-blueprint/1140465/1 "2023-04-25T11:57:00Z")

</div>

Hello, I’m trying to play certain indexes from a array inside my MetaSound Source. I set up a simple MS Source and created a keyboard input inside my BP\_FirstPersonCharacter. When pressing X it plays a sound. The MS has three sounds inside for the arrays. It says index 0-2. In another thread ([Setting Metasounds Variable - #50 by khazum](https://forums.unrealengine.com/t/setting-metasounds-variable/508262/50)) I read it only works with input not with variables from a BP. But it does not, it always plays the first sound, index 0. How can I trigger the other two indexes? thanks for any help

 ![UnrealEditor_ykHj2taQO9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/e/62eea224c826982294675c00b14d78298d5c40ab.png)  
 ![UnrealEditor_GlwsJ8bPkF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/a/73a426e7bf9e834cab9ff95515df84afff64496b.png)

---

<div class="post-metadata">

**Author:** ![ebarkani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ebarkani/32/984202_2.png) [@ebarkani](https://forums.unrealengine.com/u/ebarkani)\
**Post date:** [April 26, 2023, 10:37pm UTC](https://forums.unrealengine.com/t/trigger-waveasset-index-from-blueprint/1140465/2 "2023-04-26T22:37:52Z")

</div>

Hi, your MS setup is fine, it’s the BP graph that needs fixing :  
First, the **PlaySound2D** node creates a new audio component and plays it, not using your **MS Audio** at all. So instead, add a **Play** node _before_ the **SetIntegerParameter** , and connect **MS Audio** as its target.  
Seconds, your’e jusfully using a **SetIntegerParameter** node that says “Target is Audio Component”, but it’s a legacy node for sound cues. Replace it with a node that goes by the same name, but says “Target is Audio Parameter Controller Interface”, keeping **MS Audio** connected to its target pin.  
Input"X" \> Play \> Set int.  
Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![fl0wf1r31](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fl0wf1r31/32/575571_2.png) [@fl0wf1r31](https://forums.unrealengine.com/u/fl0wf1r31)\
**Post date:** [April 27, 2023, 6:52am UTC](https://forums.unrealengine.com/t/trigger-waveasset-index-from-blueprint/1140465/3 "2023-04-27T06:52:08Z")

</div>

thanks a lot, I will give it a try. How do we know what is a legacy node and what are nodes for MetaSounds? I was thinking about this wile working on it. A bit confusing. First I will try out your suggestions 👍

---

<div class="post-metadata">

**Author:** ![fl0wf1r31](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fl0wf1r31/32/575571_2.png) [@fl0wf1r31](https://forums.unrealengine.com/u/fl0wf1r31)\
**Post date:** [April 27, 2023, 8:00am UTC](https://forums.unrealengine.com/t/trigger-waveasset-index-from-blueprint/1140465/4 "2023-04-27T08:00:41Z")

</div>

it is working as expected 🙏 basically it was working all the time as I thought but with the wrong nodes. Thanks so much
