Check Gameplay Tag Condition on Behavior Tree

Hi there!

I’ve been toying lately with the behavior trees, and so far I have been enjoying it a lot! However, I’m having some issues with the “Check Gameplay Tag Condition” node. I have an NPC actor that I have tagged as a Shooter, so when the NPC sees the player character, it should start shooting him instead of chasing. I added an image with the part of the behavior tree where I’m having the issue. Prior to the Check decorator, I have added a debug just to see if the NPC was correctly tagged, and that seems to be the case. Any insight?

1 Like

Hey,

Have you managed to make it work so far ?

I am pretty much trying to do the same thing as you but Im failing so far …

You need to create a new key in your blackboard and set KeyType to Actor first.
Then you need to assign your ability system to that key.


After this setup, you have to set ActorToCheck to the new key on “Check Gameplay Tag Condition”

2 Likes

Nope, it does not help.

I think you need to implement the Gameplay Tags Interface. If you don’t want to delve into C++ you can always make your own Gameplay Tags Interface and Check Gameplay Tag Condition node.

Thank you really much! This was very useful in my case <3

can u show me how u did it?

Thank you. I was confused because of the comment of GameplayTagCondition node. It said it’s based on Actor, not Ablilty Component.

你好,看你的ID我直接用中文提问了,在最后一步,我无法设置ActorToCheck为新的key,只有默认的SelfActor。请问你知道怎么解决吗?