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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How to pickup actors close one each other?

Hi guys. Trying to figure this out for 2 days now. Im using a sphere collision in my pickups to detect when the player can pickup the objects. The problem is, when i drop two of those pickups one close enouh each other , and i approach with my character, i can only pickup one of em, and i cant no longer pickup the other one until i walk away from the collision box and i walk in again.

The way is setup is, when the player enters the collision box, a variable called "can be picked" is set to true and viceversa.

So, any ideas how to go around this?

Thanks in advance.

Product Version: UE 4.16
Tags:
more ▼

asked Oct 25 '17 at 11:20 PM in Blueprint Scripting

avatar image

amstradcpcuser
31 3 9 13

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

2 answers: sort voted first

I think you are checking collision only once, when 'Begin Overlap'.

When 'Begin Overlap' you should start collision check on Tick Event, and end checking on End Overlap.

more ▼

answered Oct 26 '17 at 12:47 AM

avatar image

Vaheva
1.3k 24 25 49

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

usually this can be fixed by using line trace. So you get to object, make line trace from camera to get one you are looking at, then repeat for another one.

Overlap event is bad in this case because its fires once.

more ▼

answered Oct 26 '17 at 07:02 AM

avatar image

redbox
4.2k 80 17 103

(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