# How to set up an Integer for a Sound Cue Switch Node?

**URL:** <https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848>\
**Category:** Platform & Builds\
**Tags:** Switch, footsteps, unreal-engine, question\
**Created:** [April 27, 2014, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848 "2014-04-27T20:41:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 27, 2014, 8:41pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/1 "2014-04-27T20:41:27Z")

</div>

Hi, I’m trying to set up a Sound Cue with a Switch node that is driven by an integer value from the My Character Blueprint.

I’m trying to set up a system that plays footstep sounds based on the type of surface my character is on. The sounds are triggered from Animation notifies (on the walk and run animations).

How can I use an integer to control the Switch node in a Sound Cue?

Thank you!

 ![5018-audiocueswitch.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/0/eb00c95f4b95ec5d25d08c59268e8f7af79ec8b5.jpeg)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 27, 2014, 8:51pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/2 "2014-04-27T20:51:11Z")

</div>

Functions to control cue parameters are in Audio Component

[https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/Components/UAudioComponent/SetIntParameter/index.html](https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/Components/UAudioComponent/SetIntParameter/index.html)

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 27, 2014, 8:52pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/3 "2014-04-27T20:52:46Z")

</div>

Thanks, how could I set this up in a blueprint?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 27, 2014, 11:34pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/4 "2014-04-27T23:34:39Z")

</div>

You forgot to set sound

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 27, 2014, 11:50pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/5 "2014-04-27T23:50:10Z")

</div>

I’m sorry but I don’t understand. What do you mean I forgot to add sounds in the audio component?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 27, 2014, 11:51pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/6 "2014-04-27T23:51:56Z")

</div>

Audio Component it self is useless, you ned to set sound in it and play that sound in it 🙂

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 27, 2014, 11:57pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/7 "2014-04-27T23:57:18Z")

</div>

I think I see what you’re getting at. Could you please show me what you mean?  
Just for context, I have the sounds set up in the footsteps sound cue because that cue is being triggered by event notify’s by the walk and run animations.  
Here’s my audio component properties, am I doing something wrong?

 ![5026-audiocomponent.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/5/d7509db06e61b822af63207a5772e67c1ccc22f6.jpeg)

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 12:00am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/8 "2014-04-28T00:00:47Z")

</div>

Are you asking me to add sounds to play in the graph? Wouldn’t that defeat the purpose of triggering sounds from my animation?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 28, 2014, 12:02am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/9 "2014-04-28T00:02:59Z")

</div>

Ok it seems got sound set :\> Do you play sound from Component with play function?

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 12:07am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/10 "2014-04-28T00:07:35Z")

</div>

Sorry, perhaps I wasn’t very clear about my end goal. Currently I have notify’s set up in my animations to play the footstep sound cue. I’ve added the switch in the sound cue and would like to control the integer required for the switch from my character blueprint. How can I do this?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 28, 2014, 12:16am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/11 "2014-04-28T00:16:26Z")

</div>

Then make your animation play sound in audio component, as audio component seems to be only way to set those parameters

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 12:23am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/12 "2014-04-28T00:23:04Z")

</div>

Ahh ok I’ll look into this. I’m confused though because according to the documentation the Switch node in an audio cue is driven by an integer. Is there no way to get an integer to control the switch node?

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 12:24am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/13 "2014-04-28T00:24:30Z")

</div>

> **[Sound Cue Reference](https://docs.unrealengine.com/5.1/en-US/sound-cue-reference-for-unreal-engine/)**
>
> A reference guide for Sound Cues and the available Sound Nodes.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 28, 2014, 12:28am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/14 "2014-04-28T00:28:38Z")

</div>

You need to set that parameter each time the ground changes

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 12:58am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/15 "2014-04-28T00:58:33Z")

</div>

Yes, but how do I set the parameter? Could you please show me an example?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 28, 2014, 1:00am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/16 "2014-04-28T01:00:28Z")

</div>

…with Set Int Parameter? you already doing that

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 1:14am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/17 "2014-04-28T01:14:46Z")

</div>

It doesn’t work.

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 1:16am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/18 "2014-04-28T01:16:26Z")

</div>

If you were to implement such a system, how would your graphs look? Have you gotten this to work?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 28, 2014, 1:19am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/19 "2014-04-28T01:19:25Z")

</div>

Ok let me clear something out, what you expect from “Set Int Parameter”?  
That you gonna set integer varable in it and then when you change that varbale it will automaticly apply? if yes that does not how it works, you need to do this set on every time oyu want to change that paameter. IF not then make sure you using right audio component right sound cue and right parameter name.

---

<div class="post-metadata">

**Author:** ![Daphnis26\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daphnis26\_1](https://forums.unrealengine.com/u/Daphnis26_1)\
**Post date:** [April 28, 2014, 7:42am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/20 "2014-04-28T07:42:32Z")

</div>

Success!

So I still haven’t found a way to control that darn switch node, however I was able to create a custom notify event to use with my animation. I’ll include a snapshot of my notify for anyone trying to do the same. The sound cue here is determined by an Integer value from the MyCharacter blueprint.

> **[Crash Course In Animation Notifies In Unreal Engine 4](https://www.unrealengine.com/de/blog/crash-course-in-animation-notifies)**
>
> Blueprint notifies are a way to trigger some custom logic defined in a blueprint at specified times in an animation sequence or montage. The concept is similar to the animation notifies in UE3/UDK but with a much smoother workflow and zero code...

 ![5045-footstepsnotify.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/b/98bb03c97f15e198993b216722fce08da320ccdb.jpeg)

[Next page](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848.md?page=2)
