# 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:** 6\
**Page:** 2

<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 29, 2014, 8:40pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/21 "2014-04-29T20:40:19Z")

</div>

just use go to “Components” ■■■ Audio Component and then in blueprint you should have variable created with that component instance, use it to set soundscue inside it with Set Sound

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

and then use Set Int Parameter to set parameter in cue

---

<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 29, 2014, 8:40pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/22 "2014-04-29T20:40:32Z")

</div>

Sorry I’m lost, these tips are too abstract for me to follow.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_efad755f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_efad755f](https://forums.unrealengine.com/u/anonymous_user_efad755f)\
**Post date:** [December 17, 2015, 6:30am UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/23 "2015-12-17T06:30:54Z")

</div>

I’ve grappled with this for ten minutes myself so I just wanted to add:  
If you use the soundcue’s Switch node be sure that the blueprint that’s playing the sound **sets the Switch node’s Int param to something - its default value is not 0 as you would normally expect from an Int variable.**

Example:

I have a soundcue that consists of a starting track and a looping body.

 ![70978-screencaps2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/7/127d13378da77e30587c3c7b2c5be7b61d95fa6b.png)

 ![70977-screencaps.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/e/57e5643ef4a424eff9328d5ffb50ebd889b0dbaa.png)

When my game starts I first assign the soundcue to the audiocomponent that will play it, and then I set the Int param to zero. If you do not set the Int param to zero (or any output pin you want) the sound will not play. I then use a delay node to determine when to switch to the looping part of the soundcue.

Hope this helps others in the future.

---

<div class="post-metadata">

**Author:** ![Taratus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taratus](https://forums.unrealengine.com/u/Taratus)\
**Post date:** [October 19, 2016, 9:02pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/24 "2016-10-19T21:02:56Z")

</div>

I do it like that: If someone needs it 🙂

 ![111607-clipboard-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/5/5b52be719dbc5d4171850e729602ca43fe496773.jpeg)

---

<div class="post-metadata">

**Author:** ![codephunk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@codephunk](https://forums.unrealengine.com/u/codephunk)\
**Post date:** [August 12, 2020, 2:40pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/25 "2020-08-12T14:40:23Z")

</div>

There is a simple solution for setting default values on a switch node: use the “Parameter Unset” input.

---

<div class="post-metadata">

**Author:** ![Niyo\_official](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Niyo\_official](https://forums.unrealengine.com/u/Niyo_official)\
**Post date:** [March 12, 2021, 12:30pm UTC](https://forums.unrealengine.com/t/how-to-set-up-an-integer-for-a-sound-cue-switch-node/281848/26 "2021-03-12T12:30:37Z")

</div>

how do you use that input pin?

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