Behavior Tree Reference task variables using Shared Variables

KOKOStern

New member
When using the Behavior Tree Reference task and adding variables, shared variables (from the encompassing tree) do not show up.

You are also not allowed to specify a name (or a type for that matter) for the variable, which could be ok if you take the name of the shared variable, but this might be an important distinction.

Am I doing this correctly or is there another way of doing this?

2018-12-28_15-02-06.png2018-12-28_15-01-25.png
 
That variables field is of type SharedNamedVariable so it's not going to find the string variable. You can only specify the variables by name manually for this array.
 
Hello!
I'm trying to set the values of some variables of an external behavior but it does not seem to work.
I have a tree called 'SearchBT' that has some variables called 'SearchViewAngle', 'SearchViewDistance' and "TargetTag'.
On another tree I want to use 'SearchBT' but other values for those variables, so I set the 'variables' field but it does not seem to work.
How can I set the variables of SearchBT using the 'variables' field of the Behavior Tree Reference node?
 

Attachments

  • SearchBT.png
    SearchBT.png
    17.9 KB · Views: 9
  • 2.png
    2.png
    27.2 KB · Views: 9
Top