I solve this problem by my self as see the toturial again and again.
The task node must assign the “PotrolLocation” variable once by following steps :
check “Instance Editable” in the valiable detail.
go back to the BT, select the task node witch the “Set Blackboard Value as Vector” node.
select a blackboard key to the “PotrolLocation” valiable. thus, the “PotrolLocation” variable key should be set to “PotrolLocation” which in blackboard.
Thank you so much for taking time to answer your own question.
I spent way too much time trying to resolve similar problem after watching some tutorial which made it look like it was dependent on names equality.
It doesn’t matter if ‘name of variable in Blackboard’ and ‘name of blackboard key in task’ are different or equal - you have to bind it manually in task details in Behavior Tree. Otherwise it binds public task variable to first blackboard variable regardless of name or type.
Hi I am following that introduction to Behavior trees and thank you for helping me with that issue.
I now have a problem with the “has line of sight” decorator it is not changing the bool to true.
I have my own Topic open if you know the answer you could maybe answer there.
Thank you and anyone else who tries to help me!
I am just stupid, I forgot to set this bool to true
It is inside of the AI controller