Hey there! I’m having nightmares with the Blackboard Key Selector right now. I’m trying to set up an AI behavior tree for one of my characters.
Since I plan to have multiple mechanics for this character, I’m using an Enum that lists all the possible states the character can enter.
This Enum is used as a key named “CurrentState” in my blackboard (so it can retrieve all the states from the Enum list).
Now, I need to initialize my Behavior Tree and Blackboard in my BP_AIController, but I can’t find a way to properly reference the correct Blackboard Key Selector in the “Key Name” input of the “Set Value as Object” node.
For reference, I have two Blackboard Key Selectors to set up:
- TargetActor (Object, Character) – The character the AI should be following.
- CurrentState (Enum “E_EcoState”) – The current state the character should be in.
I can’t figure out how to “plug” these Key Selectors into the node.
Maybe I’m doing something completely wrong, but I’m totally lost right now!
Thanks for your time and help!
Alex