How do you call a blackboard value

How do you call a blackboard from the player character. I am using the top down character template blueprint.

91153-question+2c.png


I’m trying to get the actor I clicked to be set as my “Target” in my blackboard Data “TargetKey” but whenever I call the blackboard via a reference to my AI I get a error saying that none are trying to read the call function for get blackboard.

Is there any other way to set a value as an object in the blackboard outside of the AI controller/character?

91151-question2a.png

As you can see I’m trying to get the blue actor to attack the red actor. both are AIs with different trees. but whenever I try to set one of the red actor as the target (when clicked) I get the error as seen in the third image.

Nevermind I feel so stupid trying to call a blackboard key outside of the AI controller.
I fixed it

in steps:

  1. Check what’s under my curor.
  2. When clicked check if what I clicked is a valid actor.
  3. If valid set it as target.