Subtracting .2 from a float seems to produce a float error, registering incorrect values during if checks.
1. Open Editor (any project)
2. Open character blueprint
3. Create the blueprint in attached image (set New Var 0 to an initial value of 1.0)
4. Compile
5. Press PIE, press 1 until "DONE" is printed to screen.
Results:
It takes 6 button presses to get "DONE" to print. The value of New Var 0 is -.2.
Expected:
"DONE" is printed after 5 presses, when New Var 0 is a value of 0.0
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.11 |
Created | Feb 1, 2016 |
---|---|
Resolved | Feb 4, 2016 |
Updated | Jul 14, 2021 |