How to simply set a Blackboard Key

Hey Azsarg! Welcome to the forums!

So the problem is you’re wanting to set a BB variable pre-level-begin.

On your AI Controller, you can set BB values. I would suggest making a variable matching the type of variable on the BB on the AI controller itself. You’ll make that variable “Instance Editable.”

Now, once you have done that,

  1. you can go into your level,
  2. select your character that exists in the level,
  3. use the details panel to find that open variable
  4. grab the object you’re wanting to move towards and place it into that variable slot.
    At this point, you have a reference in the AI Controller. Next,
  5. Go into the AI controller’s event graph. On “OnPossess”, put a “Set BlackBoard Value” node in, and use your new variable to set your BB value!

So the object reference goes from
In Level → AI Controller → BlackBoard → Behavior Tree :slight_smile: