Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

A question about timers


DarkMazer
 Share

Recommended Posts

In EE 2.7, is it possible to check to see if a timer is running without waiting for it to execute?

For example:
I call a timer by pressing a hotkey, and it is set to run after 2 minutes.  After 1 minute, I want to check to see if the timer is running, and I want to check again 1 minute after the timer has already run and been removed.  Is this possible?
Link to comment
Share on other sites

Thanks.  I can't find the tutorial, but that should be enough to get me started. 

Edit: I dug around the source code a bit, and found out that GetTickCount does something totally different, and it's not related to SadScript at all.  The command you were thinking of is GetTimer.  (Much easier name to remember, too.)

Edit 2: Apparently, there's also a ScriptGetTickCount in SadScript, but I'm not exactly sure what that does.  It returns the value of GetTickCount, which I think counts the time the server has been running, but don't take my word for it.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...