# "Has Matching Gameplay Tag" Return Value

**URL:** <https://forums.unrealengine.com/t/has-matching-gameplay-tag-return-value/149993>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 30, 2020, 3:44pm UTC](https://forums.unrealengine.com/t/has-matching-gameplay-tag-return-value/149993 "2020-08-30T15:44:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClearAllvisuals](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClearAllvisuals](https://forums.unrealengine.com/u/ClearAllvisuals)\
**Post date:** [August 30, 2020, 3:44pm UTC](https://forums.unrealengine.com/t/has-matching-gameplay-tag-return-value/149993/1 "2020-08-30T15:44:37Z")

</div>

Hey Y’all,

I’m trying to select one actor that has many duplicates in the scene and grab all actors of that class. I started playing around with Gameplay Tags and seemed that it was the right direction to go. I’m using the hit result to grab the selected actor and see if it has a Gameplay Tag associated with it, but it doesn’t seem that the tag is working as I would expect it to according to what I have read.

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/8/68668d3b0ec7cc6e83cdc67d21e9b61a83f8c197.png) I don’t have any errors on this, so I can only assume it might be ok, but on the first branch after looking for tag 1 it doesn’t seem that the boolean is correct as it only passes false. I have confirmed that the hit result is acting correctly from other nodes above this one.

Thanks for any possible suggestions on this!

---

<div class="post-metadata">

**Author:** ![FleMo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FleMo](https://forums.unrealengine.com/u/FleMo)\
**Post date:** [January 31, 2024, 9:42am UTC](https://forums.unrealengine.com/t/has-matching-gameplay-tag-return-value/149993/2 "2024-01-31T09:42:53Z")

</div>

Probably it is because the target actor you call the function at, does not implement IGameplayTagAssetInterface. This interface can only be implemented in c++. There is a discussion about the c++ availability for the interface here:

> [@Why the heck is IGameplayTagAssetInterface NOT exposed to Blueprints...](https://forums.unrealengine.com/t/why-the-heck-is-igameplaytagassetinterface-not-exposed-to-blueprints/99819/1):
>
> So, call me crazy. But I have these three awesome nodes: [[image] ](https://i.gyazo.com/9e8395e185d72491e615523483f08ec1.png) Yet, I can’t use them…because… [[image] ](https://i.gyazo.com/cc4b5b14d0b13854a4ebd521e261a403.png) Yo… CannotImplementInterfaceInBlueprint Obviously, I can just create my own actor parent class and use the darn interface and expose that to Blueprints… But… what is the reasoning behind NOT allowing us to do it from BP? Why even have the other nodes available then. Unless there’s something I am missing completely from…

And here the relevant documentation. Scroll down to “Quickly Accessing Gameplay Tags in C++”:

> **[Using Gameplay Tags in Unreal Engine | Unreal Engine 5.7 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/gameplay-tags?application_version=4.27)**
>
> An overview of the hierarchical label system in Unreal Engine.

The best solution for blueprint only projects would it be to create your own interface with desired functions.
