Behavior Tree Decorators are being reset every time my project loads.

Anybody have any idea if there is a way to fix this?

I have a Behavior Tree Decorator called “random chance”. It does just what you think:

Return (RandomFloat() < RandomChance); (only in blueprint)

It works like a charm, only problem is every time I reload the project, the value of “Random Chance” gets wiped back to default. I had the same problem on another decorator that tests if it’s near a location (I had to make my own so I could add an abort), but that magically started working after I recompiled some C++ code.

I tried this with “random chance” but that didn’t work.

So I managed to get it saving by creating a second variable named “EpicDoesntTestTheirCode” and giving it a default value of 0.5, and it started working like magic.

1 Like