while working on a game, i recently got stuck on an issue, wich i am not able to resolve: i made an Actor Blueprint of an Item (lets say a Potion), that will be placed many times in the level (maybe 10-15 times across the level), by simply dragging it into the desired places of the viewport. The Potion Blueprint has a collision box, wich detects Begin and Endoverlap events. However, the player should not be able to pickup these items by simply stepping into them - instead he has to push a gamepad-button while inside the collision box radius. So far, this works fine.
Now the issue: It seems that i can only pickup Potions by a certain order (maybe by the order they were placed in the level?). I cannot pickup any Potions before i pick a specific one and then follow the next right ones. In then end i can pickup all just fine, but not randomly pick up any i like. I dont use any Array or Index and everything is coded inside the Actor Blueprint.
Like mentioned: the pickup works, but i cant figure why UE4 wont let me choose to pick up any Potion i want. Since many games rely on picking up items by using a Button, i was wondering, if there is a special way to blueprint something like this to make it work. Any help is appreciated!