Checking a value makes it zero

I’m struggling to figure out what is happening with this. If I print, compare, or do anything with the value after the selected division, it makes the value 0. Doing anything before the division is fine. The code in the screenshot works, but if I move the inputs to the print or the >2 nodes to after the division, the value of the result of the division is always 0. Why?

It’s like it’s shy. If I look at it, it disappears.

1 Like

I’d try converting to a float earlier on

That fixes it. But why? If it didnt work at all, I would understand, but a non-zero value gets passed to the outer size variable of the spawn actor if I don’t try to check it or print it.