Author Topic: UGHHH VCE WHY? (Value not registering as true when it is)  (Read 355 times)

I've got this setup.



The problem is that that first if for testing the final value, "ifVariable rotate == 1" never returns true, but when it goes to the "I've run out of options, printing rotate to chat" it prints rotate as one. (It's the same pattern here except that when it reaches 5 instead of changing the lookvect variable to a thing that says "FIX ME, IDIOT" (I haven't grabbed the vectors yet) it prints rotate to chat instead.)

WHAT IS WRONG WITH YOU, VCE?

Oh, by the way, the purpose of the eventing is to rotate through the numbers 1-4 with one bind making it go up and the other down, and then making the lookvect change based on which of the four values it is. The other bind will be identical, except with subtract on event zero instead of add.

Never mind, I re-wrote it from scratch and it's fixed now. Probably because of the delay of 100 I put on the stuff that checks what rotate is and changes lookvect.

Yep, most definitely because of that. It doesn't work with delays of 10 and below, but does with delays of 15 and above. Although that's the new code, that'll probably solve it with the events pictured.
(gah I hate unnecessary delays. Every unnecessary delay is a point where a delay could cause something to break.)

I've had this problem a lot on my server.
Which events did you add a delay you say?
Just the ifVariable ones?

Is it all good now?  I see several fixes you could make.