How do you make a script wait a set amount of time before continuing?
Timer
Waitframes(f); ,were f is the amount of frames to wait.
[SIZE="1"]where isn't mispelled, it's just a fool mune...gah, I give up.[/SIZE]
Also, waitframe only works in freeform combo scripts. If you use it in a global or item script, you will be sorry. However, for global scripts, there are work arounds. You can create a global variable, decrease it each frame, and have the script do something when the variable reaches zero.
russadwan wrote:Also, waitframe only works in freeform combo scripts. If you use it in a global or item script, you will be sorry. However, for global scripts, there are work arounds. You can create a global variable, decrease it each frame, and have the script do something when the variable reaches zero.
Unlike what you just said, global scripts can wait as long as they want.
Gleeok wrote:Waitframes(f); ,were f is the amount of frames to wait.
How do you tell it to wait 20 seconds?
Each frame is 1/60 of a second, so you just multiply 20*60. So 1200 frames.
If you wait for 20 seconds, the rest of your script will stop running.
That's a rather large time period for your script to stop.