Announcement

Collapse
No announcement yet.

How to play sound on an opening/closing door

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

  • replied
    No problem, glad you got it working!

    Leave a comment:


  • replied
    Ok, so using the debug tool i noticed that the sound pins always played at the start and at the end, regardless if the door was opening or closing, so i solved it by creating a new variable that depending on if the door is open or not the sound plays. Although it works as intended, i'd like to know if there is an easier way to do it, just because i want to learn more.
    Either way, many thanks Doug.

    Here is what i did:
    Click image for larger version

Name:	1a98f3039ad764972e1b92579e8f48b1.png
Views:	1
Size:	114.7 KB
ID:	1080111

    Leave a comment:


  • replied
    Hi Oscar, as you are reversing the timeline it's possible the sound pin is not firing when you'd think it should.

    Once you hit play you can debug your blueprint by opening it up. This will let you see if the 'Sound' pin is executing when you'd expect it to.

    https://docs.unrealengine.com/latest...ing/index.html

    Leave a comment:


  • started a topic How to play sound on an opening/closing door

    How to play sound on an opening/closing door

    Greetings.
    I need some help in adding sound to a door, because i have successfully created a door which you can open or close at will, but it does not have any sound at all. So i was trying to create some kind of contraption in order to achieve it, but because of i am a beginner i ended up with something that kind of works but it is not what i wanted. I'd like to get at least pointed to the right direction on how to make it.

    Need to say that i'm working on UE4 4.8, the working environment is a class blueprint, and i have created an effect timeline in order to play sounds. Also the result is that when opening the door the sound for opening works well, but upon closing the door nothing happens but when it goes back to the initial state it plays the opening door, and i want the opening and closing sound to play when opening or closing.
    Here is how the event graph looks like:

    Click image for larger version

Name:	9fd3b0d00ffd51e923cd0f51cf54d764.png
Views:	1
Size:	210.7 KB
ID:	1151994

    Thanks in advance.
Working...
X