Creating a door with creaking physics
Ok, so I want to make a simple, spooky game to try and get my feet wet with the whole UE4 goodness, but one of the most used things that will be in the game are physics reactant doors that squeak when they get pushed. Ideally, when you walk up to one of these doors, you have the option of either pressing a button to apply some force on the door and have it swing open enough to walk through (still using physics) or you can just walk through it and have it be pushed by your character. Kind of like the spooky doors in the Daylight game. Anyone know how to create something like this in blueprint? And especially about the squeaking of the door. I can't even imagine what kind of set up/put together would be needed to make it so that a sound file was played for how much the door opened, rather than just playing the file again and again each time the door's rotation changed (which would be really bad). Sorry if I am rambling on, but whenever i think hard about BluePrints, I kinda get unraveled.
You could play the sound if there's a rotation difference on the door this Tick and the sound isn't already playing. If you also tie the sound volume to the rotation rate you could have it naturally fade out if the player stops pushing the door mid way, and then restart if they continue to open the door.
answered Apr 01 '14 at 07:03 AM
I was working on this the other day.
I made a blueprint for opening and closing a door. When the link goes to active and timeline or animination put a "Play sound at location" in between.
You may have to tinker around with the sound to make sure it does not kick in 2 earlier or late. So I found one that was about 1 sec long and made my timeline for opening and closing 1 second long.
Create door here for normal door: https://answers.unrealengine.com/questions/81711/is-it-possible-to-make-a-normal-door-and-not-a-sli.html
answered Nov 14 '14 at 11:22 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here