The following graph should:
If not "recharging", subtract the "energy load" (float) from the energy (float), then update "energy"
By default, it works great. When "isRecharging" = true, it stops the subtraction as expected.
However, once I toggle "isRecharging" back to false, the bottom portion of my graph animates correctly, but it won't actually subtract anymore.
Above, it will fire every X seconds, but the Get Object Variable (energy) never goes lower than 200. It will just fire forever, calculate 200 - 5 = 195, but the values on the graph stop updating.
I also verified that nothing else is updating "energy" in another script - this is the only script that references that object variable.
Customer support service by UserEcho