AI Blackboard doesn't receive some key changes from BTT [UE5.3]

Hello Unrealers.
I have an issue with setting a boolean key in a Blackboard from a Behaviour Tree Task. The issue is, I am doing the exact same thing with a different key (not a bool this time, but an object), and for that one it works. I am a bit lost!

So, here is the setup:
The “Seat” key, of type object.


The “sitting” key, of type bool.

This is the task where I set the “Seat” key. This works correctly (screenshot further down).

And this is the task where I attempt at setting the “sitting” bool key to True.

Although the set up of the two commands is identical, where I am using a BlackboardKeySelector variable with the identical name of the key to set, the “Seat” key works, but the “sitting” key doesn’t. Here is an example of the status of the blackboard after both BTTs have been executed. You can see the “Seat” value being changed, but the “sitting” value still being "false.

I attempted already at setting the key not from a BTT but from the AI controller, using the key name instead of the BlackboardKeySelector, but to no avail. Please help! Am I doing something wrong? I am missing something? Thank you!

EDIT: I forgot to mention, I’m using the 5.3 version of the engine.

Ok, I think I found the problem, and I think this might be a bug. But I also found a solution!

Here is the problem:

Although I created the BlackboardKeySelector variable as per how it should be done in the documentation, by promoting to a variable the “Set Blackboard Value as Bool” Key input, the Selected Key Name of the structure is still set to “Seat”. I don’t know why this is, but of course it’s wrong!

Now, I found a solution that works.


If I run the “sitting” variable in the BTT through a Break Selector node, and I split the input pin of the Set Blackboard Value as Bool function, I can pass from one to the other all the elements, but manually setting the Key Name on the Set function.
image
And it works!

Also, if you don’t have any other connections going out from the variable, you can split the variable pin directly, without requiring the Break node.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.