How can I set an actors name by +1 everytime I spawn a new one?

Hello I would like to know how can I get the count of all the actors with the same class and just set the actors name to be the class name +1.
I need this because my pickup and buy system are interfeiring with each other like I have an object that I attached to another actor but the actor but when I am holding an object and I try to drop the attached actor also simulates physics which I dont want


I have an object that I attached to another actor but the actor but when I am holding an object and I try to drop the attached actor also simulates physics which I dont want

Not going to pretend I understood the above, but I’m almost certain there is a better way than naming actors 1 by 1 and / or tracking their references. Perhaps you’d want to look into Collision Channels and Object Types - an efficient and automated method for dictating who can interact with whom.

Or, perhaps, this is just about referencing or querying collision simulation. If in doubt, consider rephrasing that sentence to clarify.

OH thanks