# Can I use GameplayTags to identify four instances of the same class?

**URL:** <https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [March 12, 2026, 6:28am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579 "2026-03-12T06:28:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [March 12, 2026, 6:28am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579/1 "2026-03-12T06:28:53Z")

</div>

Hi!

In one of my levels, I have four actors acting as door switches. The player must activate all of them to open a door.

To activate a door switch the player has to overlap with the door switch and then press the E key. I need to know on which door switch is the player to active it, but to avoid adding dependencies between the player and the door switch, I’m using events.

At this moment, I’m using a hard coded string to identify each door switch. Instead of this string, is it better to use GameplayTags?

Thank you!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 12, 2026, 6:46am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579/2 "2026-03-12T06:46:56Z")

</div>

So the switch talks to the door? Just use an interface to let the switch do that. You can use an actor reference ( so it’s all modular ), and set it in the level 🙂

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [March 12, 2026, 6:50am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579/3 "2026-03-12T06:50:23Z")

</div>

Thank you for your answer, but my question is about GameplayTags. I’m trying to avoid hard coded strings, and I think using GameplayTags instead.

But I don’t know if GameplayTags are designed for that.

Thanks!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 12, 2026, 6:53am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579/4 "2026-03-12T06:53:08Z")

</div>

There’s no hardcoded strings.

GTs are a way of categorizing things more:

Potion can be poison or healing, and the poison can be deadly or just dangerous. That kind of ‘tree’ system of tags…

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [March 12, 2026, 6:58am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579/5 "2026-03-12T06:58:47Z")

</div>

> [@ClockworkOcean](#):
>
> There’s no hardcoded strings.

I have set **FOUR** door switches in the level, each of them with a hard coded string. I think you need to re-read my question carefully.

I’m trying not to use hard coded strings using **GameplayTags** instead. But I don’t know if **GameplayTags** are designed for that \<= this is my question.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [March 12, 2026, 7:20am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579/6 "2026-03-12T07:20:41Z")

</div>

> [@ViaCognita](#):
>
> I’m trying not to use hard coded strings using **GameplayTags** instead. But I don’t know if **GameplayTags** are designed for that \<= this is my question.

if you mean should you ID swtiches by GameplayTag i’d say no. Tags are good for generic things, ie Interactable.Switch if you want to ID i assume you mean Interactable.Switch.1 etc which doesnt scale well.

do you even need to ID the switches, can you just have an int on the door and when it reaches 4 it opens?

also i know you said you dont want to hardcode but if its ‘instanced’ ie in the level there is no reason not to, each instance of door can link its own switches

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [March 12, 2026, 7:22am UTC](https://forums.unrealengine.com/t/can-i-use-gameplaytags-to-identify-four-instances-of-the-same-class/2705579/7 "2026-03-12T07:22:10Z")

</div>

You do not need tags for this, I have read your question. Use actor references 🙂 The switch just needs an actor reference to the door.
