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"

Weird overlap error.

I am trying to make a pickup system in blueprints. The way i designed it is to pickup every actor that is within range. However, when i put two actors close together so that you can pickup two at once. For some reason once one of the actors is destroyed then the other actor next to it detects the character as being out of range. I have to click the pick up button again before the actor is actually picked up. Here is the overlap code: alt text

Here is the code for the destruction: alt text

Here is the visual of the world: alt text

Product Version: UE 4.20
Tags:
debug.png (347.9 kB)
debug.png (351.0 kB)
debug.png (784.2 kB)
more ▼

asked Mar 29 '19 at 12:53 PM in Blueprint Scripting

avatar image

pabolo12345
3 1 1

avatar image duderseb Mar 29 '19 at 02:29 PM

Heya. How are you adding the pickup actors to your AllPickupActors array in your ThirdPersonCharacter BP?

avatar image pabolo12345 Mar 29 '19 at 03:06 PM

I solved it. The items were added correctly. The for each loop when I am going through each actor reference turned out to be the problem. I was removing the item inside the for loop body and therefore it was excecuting only once. So I got rid of that. I now have a different problem. When I drop the actors, the overlap event doesnt get fired so my pickup variable stays false when the actor is dropped above the actor. So you have a solution for that?

avatar image duderseb Mar 29 '19 at 03:12 PM

Great! As for your question, try running a CheckForOverlappingActors node on BeginPlay when you drop? I'm assuming you're destroying the actors on pickup and respawning them on drop.

avatar image pabolo12345 Mar 30 '19 at 06:34 AM

Yes that worked perfectly thank you.

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

0 answers: sort voted first
Be the first one to answer this question
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