Skip to content

BTRoot : setting blackboard from script does not use the given blackboard instance #19

@Earewien

Description

@Earewien

Scenario:

  • Create a node
  • Add a BTRoot as child of this node, and some behavior tree logic in it
  • In another scene script, add an instance of the above node
  • Create a blackboard in script, add some values in it, and assign this blackboard to the node's tree
  • Run the scene

The assigned blackboard is not the same as the tree blackboard at runtime ; its a copy. By doing this, it's not possible to share a blackboard between trees if the blackboard is not assign from Godot Editor.

One way to fix that is to change blackboard type in BTRoot from BTBlackboard to NodePath, like the actor

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions