Run custom event in given actor

I’m tracing the position of the mouse to get the object under the cursor position, I also have different actors in the world where some have a certain tag. Now I’d like to run a custom event if the trace hits an object with the given tag. The event is called the same in every actor with that tag and every actor with that tag has that custom event.

So, I’d like to know if there is a quick way to just run that event without getting which object it is (which Blueprint), then casting and all that? Just something like if it has that tag, run the custom event with that name.

From the Hit Result you can check if the Actor has the tag or no by using ActorHasTag node.

87991-actorhastag.png

Even though you can use this method, my personal suggestion is to use Interface. It would be the best choice in this situation.

thx for the information,
I’ve already got the tag, but had to check what type it is, then cast to it and then run the event,
but interface sounds really intersting
I’ll check it out

Edit:
Was exactly what I needed, thx for the help