Author Topic: Delay on code  (Read 1727 times)

Is there a way to do part of a function, then wait say 5 seconds then it does the rest? example:
Code: [Select]
function FakeJumpTwice(%c)
{
      %c.player.playThread(0,"Jump");
      //wait 5 seconds
      %c.player.playThread(0,"Jump");
}
And yes, I know that i didn't add any velocity, It was an example.

You're making a crazy number of coding help topics, I think you're getting lazy. As part of forum tradition you are now required to say "I am in a bit of a pickle" before any tradition-adhering (probably just me and Trader) will help you (not that we would anyway). See this thread, since you're so new and un-hip:

http://forum.blockland.us/index.php?topic=28936.msg428593;topicseen#msg428593

I'd make a witty joke about Mr. Pickle but I can't come up with one.

Anyways, since I'm not going to just leave you totally stranded here, you can use schedules. I'm not actually going to explain them one bit; that's up to you.

I know how to use schedules, But i wanted to avoid that. and fine, "I'm in a bit of a pickle." You know what? I don't want your help. I don't need your or trader's help, I can due fine without help, But i just wanted to know if anyone knew of a function to wait a time before continuing, oh say somthing like wait(5000);.
« Last Edit: November 30, 2008, 04:22:12 PM by Slicksilver555 »

You know what? I don't want your help. I don't need your or trader's help, I can due fine without help

Save this quote.

Isn't that what pickle said(reworded)?

I know how to use schedules, But i wanted to avoid that. and fine, "I'm in a bit of a pickle." You know what? I don't want your help. I don't need your or trader's help, I can due fine without help, But i just wanted to know if anyone knew of a function to wait a time before continuing, oh say somthing like wait(5000);.
I think it is something along the lines of schedules. I remember randy saying that is how he stopped crashes by limiting the amount of time with the generations of a maze in his maze generator with schedules.
« Last Edit: November 30, 2008, 04:40:53 PM by General Omega »

Isn't that what pickle said(reworded)?
I didn't read what pickle said.

I think it is something along the lines of schedules. I remember randy saying that is how he stopped crashes by limiting the amount of time with the generations of a maze in his maze generator with schedules.

Randy probably used a standard scheduled tick function setup, there is no command to halt the execution of a script for a specified time.

I know how to use schedules, But i wanted to avoid that. and fine, "I'm in a bit of a pickle." You know what? I don't want your help. I don't need your or trader's help, I can due fine without help, But i just wanted to know if anyone knew of a function to wait a time before continuing, oh say somthing like wait(5000);.

Clearly you can't do fine without help or you wouldn't have 5 help topics on this page of the coding help forums alone.

Anyway, you already lost because you said the quote.  :cookieMonster:

Aww, I foresee a low amount of activity in Coding Help now :(

I can do fine without help, I just didn't want to use a schedule. I could have used a schedule and i did use a schedule, but I would always be confused on if there is a function or not, Witch is now solved, Plus, Atleast someone is appriciative of my topics * Looks at Dr. Bling

Plus, Atleast someone is appriciative of my topics * Looks at Dr. Bling
Thats news to me.

Thats news to me.
orly Dr. How did you write to a file clientside lololololol i saw your topic lololololol how did you do that lolololololololol.

I didn't read what pickle said.
Exactly why you are repeating his mistakes.

Coding Help is pointless if no one of you will help. Pointless forum is pointless.