This is an old post, but I feel it’s still pretty relevant to my issue.
I’m trying to make what’s basically a button blueprint that my character interacts with using a line by trace. That button should then communicate to a block that represents a door to open (destroy itself for simplicity sake).
Using the answer given this works just fine, however, it seems a bit much to cycle through ALL actors of a class and then pick one. This also destroy multiple instances of that same actor if they are placed around a level. I know that by giving each seperate actor a tag you could make sure only specific instances of the BP are destroyed.
The question is: Is there a way to reference a specific blueprint that you have no ealier reference to (e.g. due to the absense of overlapping/hitting/using linetrace)? I have tried making a variable that references a specific BP, but that doesn’t work for me.