A noob question, but i can’t really find a solution to it.
So, i created an event in my third person blueprint to whenever i press “E” i interact with a static mesh and it appears in my screen, so far so good. But the problem is that i don’t know how to make the same function to the others static meshes that i want to interact with.
All the tutorials i have seem only show how to interact with only one static mesh. I attached the prints of the blueprint. The “collectable Item” is the static mesh, and my goal is to have “collectable Item2”, 3 and so on.
I suggest watching some YouTube tutorials on the subject. It would be the best start in your case as it will be a lot of information to take in. So far it seems that you are using interfaces which is a great thing!
I would suggest that you replace the E key event with an actual key-mapping (input) which can be done in the project settings menu. It will ensure that you don’t run into any key binding issues further down the line.
To be able to pickup more items, you can use a trace from the viewport to read the static mesh object tags, data or other resource. You can then compare the data to see if it should be something that you can and should be able to interact with.