x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: Not Selected
Tags:
more ▼

asked Apr 01 '14 at 06:53 AM in Blueprint Scripting

avatar image

Knobbynobbes
161 28 45 43

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Apr 01 '14 at 07:03 AM

avatar image

Dieselhead
1.1k 27 21 210

(comments are locked)
10|2000 characters needed characters left

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

more ▼

answered Nov 14 '14 at 11:22 AM

avatar image

Narghile
1.7k 72 35 107

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question