Getting a reference to a Blackboard

Hi there,

I am trying to get a reference to a Blackboard which is part of my AI Behaviour Tree. I want to set a value within it, but I want to do this from within the script for a Trigger Box. Here is what I currently have:

But when I put a breakpoint at the Set Value as Bool node, both the Blackboard and AI CON Ref are equal to none.

Should I be able to do this this way? Thanks in advance for any help.

In the Behaviour tree has you assigned the key variable to a blackboard key? :slight_smile:

add a “?is valid” on the AIConRef to debug if the reference is correctly set. a lot of things could be wrong here: the reference assignation, the trigger not working, the AIcontroller not doing the RunBehaviorTree on beginplay, the AiCharacter not having the AiController as controller.

“both the Blackboard and AI CON Ref are equal to none.” <<< I think we can asume its not a Valid ref

We need to See where you Set the AI Con Ref thats where things start to go wrong BlockyFish.