From the tutorials i’ve seen none of them have explained this properly so i don’t understand how specific values from tasks get assigned to the right blackboard keys.
So let’s say i made a vector key with some arbitrary name in my blackboard, then in my task i get a vector value (for example player location) and goes into the input of Set Blackboard Value as Vector, and for the key input i make it a variable with another arbitrary name. Then in my behavior tree i set the AI to move to the player location by choosing said vector key, which gives it the player location.
But i don’t understand how does it know to get the vector value from that specific task? I used different names for the vector key in the blackboard and the Key input’s variable in the task, so there’s no connection there. What if i have several vector keys in my blackboard, and several tasks which each get a different vector value, and each one has a different name for the variable that goes into the Key input? How does it know which is which? I seem to be missing something here, and so far the tutorials i can find only explain what to do, but not why you do it or what it actually means, please help me understand.