![]() |
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. |
| All times are GMT +2. The time now is 12:42 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.