# "Component has tag" check not working.

**URL:** <https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [October 26, 2023, 11:19pm UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119 "2023-10-26T23:19:10Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 26, 2023, 11:19pm UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/1 "2023-10-26T23:19:10Z")

</div>

The character has a sphere collision on the left hand. A tag was added “lefthand” all lowercase one word.

 ![Image1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/4/9c439cad999406c45cdfffdba4bcb5db39877120.jpeg)

Using the component has tag node hooked into a branch does not work for some reason.

 ![Image2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/2/c5252162d64dba28fda039347c493d773412ca6b.jpeg)

However, if I bypass the branch, it of course works.

 ![Image3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/2/e428afd72ad6d4ab8bfa30c0887b74bc2b53785f.jpeg)  
 ![Image4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/8/d/d8d6b0fa4cae68321401d10e633e594565dc3fb8.jpeg)

I would like to know why that tag check is not working? Any help is appreciated thanks.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [October 26, 2023, 11:24pm UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/2 "2023-10-26T23:24:40Z")

</div>

Hey @usa423!

Before assuming it’s the LeftHandCollisionTPC… Let’s make sure that’s actually what is colliding. Try putting a printstring there in between your two nodes, and pass the “OtherActor” blue wire into the PrintString’s String node. Then it should print the exact name of the component being overlapped! 🙂

Once we know for SURE that’s what is overlapping we can go from there but… what I’m seeing right now is simply proof that what is colliding is not the LeftHandCollisionTPC but possibly the CharacterMesh. 🙂

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 26, 2023, 11:30pm UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/3 "2023-10-26T23:30:11Z")

</div>

> [@Mind-Brain](#):
>
> Before assuming it’s the LeftHandCollisionTPC… Let’s make sure that’s actually what is colliding. Try putting a printstring there in between your two nodes, and pass the “OtherActor” blue wire into the PrintString’s String node. Then it should print the exact name of the component being overlapped! 🙂

Ok

 ![Image5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/c/9acf4a527caf243e811781c019523634e516d65d.jpeg)

> [@Mind-Brain](#):
>
> Once we know for SURE that’s what is overlapping we can go from there but… what I’m seeing right now is simply proof that what is colliding is not the LeftHandCollisionTPC but possibly the CharacterMesh. 🙂

It seems to only print thirdpersoncharacter.  
 ![Image6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/1/c918e5f2bfc6d7eb2e35d024f296ba2b62b76c40.jpeg)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [October 26, 2023, 11:33pm UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/4 "2023-10-26T23:33:58Z")

</div>

@usa423 Apologies, I meant the “OtherComponent” wire. The one you’re using actively.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 26, 2023, 11:39pm UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/5 "2023-10-26T23:39:18Z")

</div>

> [@Mind-Brain](#):
>
> Apologies, I meant the “OtherComponent” wire. The one you’re using actively.

Its all good 🙂

 ![Image7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/9/dd9f1ee946e73ca5e9f007d59054e0631916ab8f.jpeg)

At this distance I get this.  
 ![Image8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/e/1feb9ad42097f3f66cf40a48a8d3fdbaa5dd883e.jpeg)

Even closer, it seems to also get the right hand though he is throwing left jabs, and oddly its not picking up the left hand collision.  
 ![Image9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/c/71ce5dfb88b651b0b4dfa32533c53c47cd3434e3.jpeg)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [October 27, 2023, 12:26am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/6 "2023-10-27T00:26:13Z")

</div>

Well, now that we know this, we know it’s not the branch! 😃

So now to continue the tests to figure out what exactly the issue is!

Try taking your LeftHandCollisionTPC collider there, select it, go into the details window and tick “HiddenInGame” to FALSE- we want to see it in action and make sure it’s going where it’s supposed to and not stationary or anything like that! 🙂

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 27, 2023, 12:48am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/7 "2023-10-27T00:48:09Z")

</div>

![Image10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/c/d1cb7d87eb4c256ab1dae109474873c833671da9.jpeg)

You might be onto something here! In game I do not see that collision though it should be visible now.  
 ![Image11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/4/5b459161cb367eb4fd1f4e37938c0ece442b3ca0.jpeg)

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 27, 2023, 12:53am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/8 "2023-10-27T00:53:37Z")

</div>

I reparented those hands and feet collisions to the capsule. Then I could see it but notice it fell off so I saw it had physics and gravity turned on. I turned it off and noticed the left hand collision did not follow the left hand…I guess cause its not parented to the mesh…hmm…let me reparent them to the mesh and see if it is visible now.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 27, 2023, 12:55am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/10 "2023-10-27T00:55:43Z")

</div>

Even after reparenting them to the mesh, I can see it now, but it still does not follow the left hand.  
 ![Image12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/4/9b4bad3f05f59ecd8a73b02af98e4bb485732fbf.jpeg)

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 27, 2023, 12:58am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/11 "2023-10-27T00:58:31Z")

</div>

I guess it needs a socket selected. BRB

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [October 27, 2023, 12:58am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/12 "2023-10-27T00:58:45Z")

</div>

Ah, you’re not attaching it to a bone or socket, but just the mesh! So you need to open your skeleton and add a socket to the closest bone you can get, save that, then use this node to attach your hitbox!

> **[Attach Component To Component](https://docs.unrealengine.com/5.0/en-US/BlueprintAPI/Transformation/AttachComponentToComponent/)**
>
> Attach Component To Component

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 27, 2023, 1:10am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/13 "2023-10-27T01:10:19Z")

</div>

Do I have to use that for attaching at runtime? Could I not just choose like a chest bone for the enemies damagebox like I attached the hands and feet collisions to bones?

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [October 27, 2023, 1:13am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/14 "2023-10-27T01:13:14Z")

</div>

Oh! No you can do that, for sure! I just usually do it this way in Construction mode as I use somewhat of a different workflow for my personal work- switching out hitboxes etc for my latest personal project is pretty regular so that was my first thought. 🙂

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [October 27, 2023, 1:23am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/15 "2023-10-27T01:23:23Z")

</div>

Ok I just parented the enemies damage box to the mesh so I could access sockets and chose the neck socket and positioned it back how I had it. Now, that we got that, I guess its back to the OP.

Here is the current result.  
 ![Image13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/1/3c1f92f17011f04312b3ea78accc4d0b150225e9.jpeg)  
It still only registers the mesh. Just tryed the tag check again and nothing.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 26, 2023, 1:23am UTC](https://forums.unrealengine.com/t/component-has-tag-check-not-working/1347119/16 "2023-11-26T01:23:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
