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"

Character Picks up Objects THROUGH other Objects

So I hope this makes sense, but I'm currently implementing a pick up system as well as interaction with doors, drawers, etc.. So, when I put an object INSIDE of a drawer, I can pick up an object without first opening the drawer, meaning I can simply just grab the item from the side of the cabinet (or whatever structure holds the object) . The drawers and all other objects do have proper collision set up. Is there a way to make it so that the player must be able to directly see the object before it picks it up?

I was going to include screen shots but Unfortunately my internet is so slow and unreliable that I get an error when trying.. But I do have line traces for both types of interactions. (door+object pick up)

thanks !

Product Version: UE 4.17
more ▼

asked Jan 05 '18 at 04:03 AM in Blueprint Scripting

avatar image

19 4 7 16

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

2 answers: sort voted first

Hey there, you can try creating a custom interact trace channel and make the drawers ignore it, while the items block it and when you do the trace you do it using that new trace channel instead of visibility. Another option is create a new object type called Item or Object, and set the items to that type, then you do a trace by object instead of trace by channel.

more ▼

answered Jan 05 '18 at 11:47 AM

avatar image

6k 163 130 305

avatar image Jin_VE Jan 05 '18 at 01:38 PM

That's what I was thinking, but I think you need the drawer to block the trace or the object will get hit. Then in the trace result you can ignore drawers. I'll put the other option in a separate answer.

avatar image xlar8or Jan 05 '18 at 01:45 PM

I understood the question the other way around :P If you use visibility line trace and the drawer blocks that then it should work.

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

You could give your drawer a list of the objects it contains. Then when the drawer is opened, you enable its contents so they become interactible. Conversely, when it is closed, you disable all its contents.

more ▼

answered Jan 05 '18 at 01:42 PM

avatar image

4.5k 32 79 42

(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