Blockland Forums > Modification Help
Is there some way to make a delay?
<< < (2/4) > >>
goz3rr:

--- Quote from: Jetpuff on December 07, 2010, 09:27:42 AM ---I only spawned once on your code, am I supposed to figure out how to use schedule(); and that was just an example?

--- End quote ---
It only gets added to schedule once afaik. You will need to readd it after
MegaScientifical:

--- Quote from: Jetpuff on December 07, 2010, 09:27:42 AM ---I only spawned once on your code, am I supposed to figure out how to use schedule(); and that was just an example?

--- End quote ---

The code is making it respawn in 60 minutes. AKA, every hour it respawns. You just haven't waited long enough, I'm sure. Just change the 60 in the code to however many minutes you want it to take between spawns.

Edit: Re-read the code, and now it just confuses me... Truce's code always confuses me, but it should work.

Edit 2: Should do what I said.
Truce:

--- Quote from: Chrono on December 07, 2010, 09:31:31 AM ---Shouldn't you be using
findClientByName("Jet").schedule(%b * 1000, spawnPlayer):
?

Because that's going to call instantrespawn on the player once, then the player is gone so the rest of the schedules die.

--- End quote ---

Yeah, probably. I just used the code he was using to do it.
But it otherwise works fine, as the echos show. It's correct.
Jetpuff:

--- Quote from: MegaScientifical on December 07, 2010, 01:50:28 PM ---The code is making it respawn in 60 minutes. AKA, every hour it respawns.
--- End quote ---

The loop ends after 60 spawns. Each interval is 1 second between spawn. The %b*1000 is 1000 MILISECONDS, and there is 1000 miliseconds in 1 second. c:

But seriously, Truce it didnt work for me :(
Chrono:

--- Quote from: Jetpuff on December 07, 2010, 09:26:29 PM ---The loop ends after 60 spawns. Each interval is 1 second between spawn. The %b*1000 is 1000 MILISECONDS, and there is 1000 miliseconds in 1 second. c:

But seriously, Truce it didnt work for me :(

--- End quote ---
Because after the first instantrespawn, the player object, which you're calling all those schedules on, doesn't exist anymore.

Read my post please.
Navigation
Message Index
Next page
Previous page

Go to full version