Switch on Gameplay Tags Not functioning?

So I just got into this gameplay tag functionality thing. I was using regular tags before but I read that it is no longer best practice.

I am trying to do a swtich on gameplay tags, but for some reason, it does not work.

This is the base item blueprint with a gameplay tag container, with default set to interactable.item.equipment

I have an Interact event which checks that gameplay tag container.

It only works if I connect the default pin, which means the switch is not recognizing the tags? Anyone have an idea?

So I did a lot more research and found out the “get gameplay tag container” interface only works in C++.

So new strategy, make my own interface which returns the gameplay tags. The “Switch on Gameplay Tag Container” is very wonky. I have no idea how it works. The selection is presumably for a gameplay tag container with a higher hierarchy, and the cases being the tags under it. However, to get the switch to work in my case, I must enter the same tag in both selection and case. which means the switch does nothing…

I tried using my new gameplay tag interface for the selection. The first case works, but not the 2nd case…

I am stumped…

i think its because your using the parent tag, switch only works on exact match.

you can create your own switch using a macro that tests the parent tag

2 Likes