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:
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?
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.