Incorrect/unexpected results in my graph from set variable to logic nodes

Ex-Crow 4 years ago updated 3 years ago 3

I'm attempting to translate this rather simple C# script to Bolt nodes.

And here's my graph:

And here's a video of the unexpected results between set variable and logic nodes. Even though it should always get the same "enemyDistance" int value that does not happen. Is it a bug or is it a problem with my graph?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Got it explained on the Discord by Reality.Stop() - It's expected functionality. Values update only on the nodes that are called. So it's not that the nodes get incorrect values. The values simply are not refreshed and it's expected functionality for this pull type operation. 


Argh, this is really unintuitive though! Don't worry though, this kind of behaviour will work like you first expected it to starting in v.1.4 with values that get cached on the flow.

Thanks, Lazlo. Much appreciated.