Okay so i narrowed down the issue to the “get array” only selecting a single copy of the sword (which ever number is inserted in the get node), allowing only the chosen sword (0,1,2) to be picked up while the others are unpickable. how do i make it so i can pick all of them indiscriminately? the chosen sword becomes a variable that i use in the code to pick up and hold the sword.
Im still new to ue 5 so im sure theres a super easy way to solve this i just dont know what node or logic to use.
Hey there @Onoxyi! So what you need first is a way to designate which sword you’re trying to pick up. Usually best done by checking your overlapped actors. Here’s a tutorial that goes over a simple extension of a basic pick up and drop system. However I’ll also link full inventory system tutorials as well.
Quick example:
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
The tutorials:
Basic pick up and drop weapon:
A full inventory tutorial if you wanted to have a system for storing items:
thank you, this worked! im guessing this works because casting to the sword/ object includes all instances of the object rather than just one instance like i was doing it