Making a class out of a mesh

Hello, I’m trying to make it so that when a player is near a mesh, in this instance a streetlight he is presented with the option to turn it on.
I however have multiple streetlights of which all have to use the same piece of code to turn on and of.
Now I understand that this is done by with a foreach loop and Get All Actors of Class if I am not mistaken… but can someone please explain to me how I transform my streetlight mesh into a class?

Kind regards,


Set your mesh in a blueprint. Fast way is to select your mesh in level editor, and, on the right, in details, top down, blueprint section : replaced with composited blueprint.
Compile and save.
Then you’ll see your blueprint in the list of class in “get all actors” node