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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I make a single BP with multiple drawers that can be opened?

I've been trying to pull this off using a line trace node, but I can't seem to figure out how to get the mesh that has been hit. Basically, the drawers are stacked vertically, and I'd like to be able to trigger a timeline specific to each one based on the one I'm looking at.

Thanks in advance for any insight!

Product Version: UE 4.8
Tags:
more ▼

asked Aug 19 '15 at 05:06 AM in Blueprint Scripting

avatar image

Phlux
44 15 19 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Line trace for component, will return a component inside an object that was hit. Line trace for object returns the object as a whole. you need to have a variable specific to the "drawer" you can toggle, and possibly Tag the drawer as drawer1 or similar

eg, if tag =drawer1, cast to desk, set drawer1open=true

if you need more help, attach a screenshot of your line trace?

more ▼

answered Aug 19 '15 at 05:10 AM

avatar image

MrGrr
986 34 3 41

avatar image Phlux Aug 19 '15 at 05:50 AM

alt text

I appreciate the ultra fast reply. I have 2 box trigger components surrounding the front face of each drawer that I want to open. Printing the string, shows me that those objects receive a hit event as expected. The question now is, how can I call an event based on the output? I don't see where I can check for a tag that was hit or anything like that.

bpdrawer.png (147.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

alt text

Hello again! I've figured out how I can trigger it based on the name of the string. Didn't know Equal(String) existed. However, I've run into a new issue that is best described with the following video. What am I doing wrong here? https://phluxdev.tinytake.com/sf/MjY2NzMwXzE2MjYwNDE

Edit: HerpDERP. the set relative location for the top drawer was moving the Z to zero. LITERALLY ALL I HAD TO DO was put a value in Z. Good day. Hopefully this helps someone out there though :P

bpdrawer2.png (193.3 kB)
more ▼

answered Aug 19 '15 at 05:30 PM

avatar image

Phlux
44 15 19 25

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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