I cannot for the life of me figure out how to find a tag within an array of overlapped components.
Here’s the baseline.
My NPC has a shield which gives and removes the shield tag to the collision box depending on when he tries to block or not.
My character has a sword with a collision box that has the get overlapping components. I loop it to find the tag. I’ve tried “component has tag” and “contains” to no avail. I believe the issue is that the loop checks each thing that is overlapped and then answers the branch.
So how do I check the array (so all) of the overlapped components for a tag?