Behavior resetting global variables (v 1.7)

Kopekku

New member
Yesterday my tree was working perfectly, but now I have two issues:

1. It's resetting the global variables after runtime and giving me null references in the tasks that use them. (I manually set them in the inspector)

2. I figured this one out
 
Last edited:
1. It's resetting the global variables after runtime and giving me null references in the tasks that use them. (I manually set them in the inspector)
If you have references to scene objects you'll need to dynamically add them:


2. (Pictures attached) And then there's this weird behavior within the probability selector, where I had 0 probability on a child task and it still would execute it. And then I realized this console error saying I had the wrong amount of child tasks. As you can see in the picture I have 4, and I set the inspector with 4 as seen in the pictures, and I get this error:
A Probability Selector is not included in Behavior Designer - it looks like that is your own task?
 
Top