"Run Behavior" task with parameters, is that possible?

I use Run Behavior task quite a lot and I really miss two things:

  1. Be able to specify behavior asset as blackboard key, so you can dynamically choose which asset to run
  2. Specify some parameters for the Behavior Tree, like for a function call, so the parameters will be pushed in the blackboard for the execution of the tree and popped after.

I understand that this is not possible at the moment, but is there any plans to implement it? Is that will be difficult to implement myself?

I checked the Run Behavior task in code and it says something about dynamic sub-trees and root level decorators, but I never use them anyway.

We implemented the call behavior node, so you can run behavior with parameters and a different blackboard.

Example project
Description
Github

Late but answering for future developers. To allow Tasks to receive parameters just set the variables inside the tasks to PUBLIC(press the eye icon on the right of each variable) then you can set their value when you use them in the Behavior Tree.

1 Like