On component Hit, I want to get component by class only if an actor has a specific tag

What I’m trying to do

1- An enemy has tag named “Enemy”

2- On component hit(capsuleComponent) of player, Check of Other Actor has “enemy” Tag

3- if the above condition is true, get capsule collision component from the Other Actor

I can’t find the solution from step 2 to step 3…

Please help~

You basically said the answer yourself.

  1. Call the on component hit event. (Make sure the component generates hit events).
  2. The on component hit event returns the other actor, drag off that actor and type “Actor has tag”, type your tag name into the node, this will return true or false.
  3. Branch off the true, cast the actor to whatever class you want and grab its capsule collision.