For some reason it's not working. My event is like this this:
It's not working though. It only works when I add a fail case. That means I'm setting up my variable check wrong.
How can I debug this? I would like to print the value of the variable that I am checking only during this event.
Local origin is only available during the running event (i.e. the variables are gone once the event ends), and since the check seems to be right after the start node, there's no way a local variable can already be set at this time.
Where is the Direction variable set?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Still not triggering :( The variable is a float.
Setting the variable like this:
ORK.Game.Variables.Set("Direction", 0.1f);
Debug log prints out the correct values.
The thing with float variables is that even if the log says 0.1, it doesn't mean it's exactly that value, because the console will only display the first decimal of the number.
Did a quick test with changing the variable in an event and that worked, so either you aren't setting the exact values or the script isn't executing.
You could also try using one of the range checks (e.g. Range Inclusive from 0.09 to 0.11 instead of Is Equal 0.1) in case the values aren't set to the exact 0.1, 0.2, etc. values :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!