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
and then use Set Int Parameter to set parameter in cue
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
and then use Set Int Parameter to set parameter in cue
Sorry I’m lost, these tips are too abstract for me to follow.
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.
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.
There is a simple solution for setting default values on a switch node: use the “Parameter Unset” input.
how do you use that input pin?