If I spawn multiple of the same actor in a world, how can I differentiate between them?

I’m making a third person shooter game and I have an actor that can be spawned on the ground. When you are looking at the actor and are within range, you are able to pick it up, destroying the actor and spawning another actor int your hands. However, if I have multiple of that actor in the world, it will destroy all of them if I try to interact with only one. Is there a way to fix this or do I need to use a different system to pick up weapons? (I’m using blueprints by the way, not c++)

If you’re picking it up, then you are already differentiate it from any other. How are you picking it up and destroying it?

However, if I have multiple of that
actor in the world, it will destroy
all of them if I try to interact with
only one.

No, it will not. Show us how you do it.

I did everything in the third person character and now it works! Thank you for helping out a rookie, I really appreciate it!

The pickup variable is stored in the third person character so i casted to it with an event tick node from the pickup actor

Nice one! Good luck with the rest.

Every pickup is checking the 3rd person for the flag and then destroys itself. No wonder everything gets wiped out. It’s just an incorrect logical approach to start with.

When you are looking at the actor and
are within range, you are able to pick
it up, destroying the actor and
spawning another actor int your hands.

Have the actor that does the picking up destroy whatever it picks up. How do you decide what to pick up? Where do you spawn a replacement?