I'm using a "condition expression" and it works perfectly but whenever I use the debug option this message pops up "Cannot test condition expression on a non-integer type. Operator had no effect."
The code works correctly, but it's just a little annoying to deal with this every time I debug.
Here's the code, if needed:
Trail[CustomMovement].Speed<1000 ? Lerp(Trail.Width, 1, 10*TimeDelta):Lerp(Trail.Width, ((Min(Trail[CustomMovement].Speed/50, 30))*(Trail.Opacity/100)), 10*TimeDelta)[/code:qx10do8d]
Looks like somethings getting turned into a string. Might try adding an int() on both sides.
Develop games in your browser. Powerful, performant & highly capable.
That's what I thought. Could this be a bug?
I'll try it though.
Hmm, the message says "Cannot test...". So I would guess it has problems comparing the float Trail[CustomMovement].Speed against the int 1000
Maybe just setting 1000.0 solves it? [Or int(Trail[CustomMovement].Speed), but then you're losing accuracy]
I wouldn't call it a bug, it's just that the debugger is very particular.
Good in some ways, bad in others.