![]() |
Timeout Cancel
Is there a way to cancel a timeout?
Kinda like this... NPC Code: |
timeout = 0;
sleep 0; timeout = 10^999; (doesn't exactly cancel, but you get the point) |
Inside the timeout loop:
NPC Code: That will make it so when this.onea is 1, it will continue to timeout |
Quote:
|
an imaginary number would be cool.
|
timeout = 0;
^ turns teh timout offfff |
an imaginary number would be cool.
|
Scriping underpants and SSJ race perhaps?
Why use timeout = 10^999; when you can use timeout = 0;? |
Quote:
|
Quote:
I WILL KAMEHAMEHA YOU. |
umm
you can cancel at time out like this:
if (timeout) { if (clause) {this.timeagain = 0; sleep .1; } if (this.timeagain>0) {timeout = .1; } } sleep will terminate a timeout until another command calls it. Or atleast it used to ;). It should work, because for me, sleep nulls timeout if I don't call timeout again. |
Quote:
---Shifter i h8 higher math, heh. |
Don't say such big words, you're going to shatter my brain! LOL! Really, 99% +0.9999999999999999(repeating)% of people will never never UNDERSTAND let alone USE them!
---Shifter |
We use them in electronics constantly.
|
Hmm... Not sure. There is still lot's of electronics ahead of me. It is entirely possible.
Im only 3/5'th through AC electronics. So far we've used complex numbers almost every day. It's all right triangle math and stuff. Lot's of trig. |
Simple Trig? WTF< are you like a mathmatician or something? LOL, the highest i'm gonna hit in high school is calculus, and the pre-calculus stuff scares me! HEh
---Shifter |
Heh, that would be why you're such a good scripter! It is mostly mathmatics once you get down to it! I am usually a pretty good math student, i'm in Geometry right now, Algebra 3-4 next year
---shifter |
Actually im not all to sure myself exactly how the numbers ended up complex. I don't recall any sqrt( - numbers)
Apparently inductors and capacitors in circuits result in complex numbres. Something about being 90 degree's out of phase with the rest of the circuit. and that makes them complex I guess. i'ts like resister resistance + capacitor reactance 100 ohms + j100 ohms. and in electronics we use j instead of i for complex numbers. and we do polor notation. 141.42 ohms at angle 45 degree's. |
| All times are GMT +2. The time now is 08:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.