Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 11 12 13 14 15 … 18 Next »
Making holograms en-masse
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Making holograms en-masse
26-08-2015, 08:34 PM,
#3
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Making holograms en-masse
(26-08-2015, 08:16 PM)Destinys Player Wrote: And here's the sleep function.

function sleep(secs)
timer.simple(secs,function()
printConsole("Sleep finished")
end)
end
This is not how timers or the threading model of the game works at all.

Everything (except maybe a few minor things) in the game is contained in a single thread. Rendering, internal C++ logic and Lua scripts. If something were to "sleep" in the way you're thinking of, your game would freeze up until it finished.

What the timer actually does, is call the function you passed after the given delay. It doesn't stop anything, it just delays whatever's in the function.

SuperPlayer's solution will probably work. The timers created by timer.create() are repeated but otherwise have the same principle.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Making holograms en-masse - by Destiny's Player - 26-08-2015, 08:16 PM
RE: Making holograms en-masse - by SuperPlayer - 26-08-2015, 08:25 PM
RE: Making holograms en-masse - by Person8880 - 26-08-2015, 08:34 PM
RE: Making holograms en-masse - by Destiny's Player - 26-08-2015, 08:43 PM
RE: Making holograms en-masse - by Person8880 - 26-08-2015, 08:52 PM
RE: Making holograms en-masse - by Destiny's Player - 26-08-2015, 09:06 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.