View Single Post
  #30  
Old 08-16-2010, 04:37 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally Posted by Loriel View Post
Yeah, pretty much that. I did not know we had scheduleevent, this is pretty cool. So setTimer(x) is just schedulevent(x, "Timeout", null)?
If you look closely at the script I made, you can schedule any number of timers, named whatever you want. They won't interfere with one another. The one in my script calleds the function onUpdate() every .05 seconds. It could easily be done with any other function I imagine. The function is part of a TStaticVar.

In the same script it's possible to create hundreds of bars (prabably some slowdown X.x) but they all update independently of eachother as separate TStaticVar objects.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote