Blockland Forums > Modification Help
"Looping" something in the bottom print?
(1/3) > >>
Daenth:
I'm trying to figure out how you can keep something in the bottom print... Seeing as a regular function (function displayscore(%client) { stuff...) didn't do it for me, I'm wondering how you can keep something in the bottom print.
otto-san:
In one of my mods, I set the time to -1 and it still wouldn't stay forever, so what I did was, since I needed it anyways, I had a looping tick and whenever the tick passed, it'd show the bottomprint to all clients.
Daenth:

--- Quote from: otto-san on June 09, 2011, 12:38:27 AM ---In one of my mods, I set the time to -1 and it still wouldn't stay forever, so what I did was, since I needed it anyways, I had a looping tick and whenever the tick passed, it'd show the bottomprint to all clients.

--- End quote ---
How would you make a looping tick?
otto-san:

--- Quote from: Daenth on June 09, 2011, 12:58:44 AM ---How would you make a looping tick?

--- End quote ---

--- Code: ---function tickthing()
{
  cancel($tickthing);
  //STUFF
  $tickthing = schedule(time,0,tickthing);
}
--- End code ---
Plornt:
If you dont specify a time, it should just stay up forever.
Navigation
Message Index
Next page

Go to full version