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,
- you can go into your level,
- select your character that exists in the level,
- use the details panel to find that open variable
- 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, - 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