How do i call a variable in the behavior tree from the game level?

Im trying to make the destination in the AI MoveTo Node a variable that can be set in the game level Blueprint. I have tried, get class of/ cast to, but i don’t know how to set the variable.

Does anyone know how to do that?

Any help is appreciated

i wouldnt set it directly from the level, meaning the level should not interact with specific AIs because for instance it wont work on another level or with different AIs.

the better approach may be to spawn an actor as a proxy, lets call it a Waypoint and the BehaviourTree can GetAllActorsOfClass(Waypoint), find one with a specific tag maybe and set that as its destination.

if your not sure how to do that, in the AI to can GetBlackboard → SetValueAsVector

This is more like an app game, that will have a lot of level. So I was hopeing it just copy and paste the information from level to level. Which is why Im setting all the information on the level Blueprint.