Announcement

Collapse
No announcement yet.

How to click a button to play the sound

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to click a button to play the sound

    In the HUD blueprint ,how to click a button to play the sound,and then click the button again to suspend the voice.
    Click image for larger version

Name:	2.jpg
Views:	1
Size:	77.1 KB
ID:	1136360
    This is what I'm doing now,but I don't know how to pause the sound.
    Last edited by EVRTOP; 07-03-2014, 12:06 AM.

    #2
    I'm not sure how to pause a sound, but you might be able to put a flipflop node before the switch and have A go to play the sound through the switch and B go to however you would pause. Then you just tap again to go back and forth. Not familiar with audio in BP, but you may have to do something to reset the audio so it doesn't play from where it was paused or reset to start depending on what you want and default functionality.
    Gooner44
    Cribbage Sample Project on MP

    Comment


      #3
      I can't find stop or pause sound node,
      Click image for larger version

Name:	1.jpg
Views:	1
Size:	112.7 KB
ID:	1052375

      Comment


        #4
        Hi there- a quick answer, you will not be able to pause a Play Sound At Location function. Instead, you will need to create an Audio Component with the sound you wish to play, and then issue Play and Stop commands to that Audio Component to control playback (you can also use Fade In/Fade Out).
        Best-
        Zak
        Zak Belica
        Audio Director, Epic Games

        Comment

        Working...
        X