DarkMazer Posted October 21, 2008 Author Share Posted October 21, 2008 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 More sharing options...
shadowwulf Posted October 22, 2008 Share Posted October 22, 2008 there is a command something like gettickcount or something.its right in the timer tutorial in tutorials.it will tell you the count until next run. Link to comment Share on other sites More sharing options...
DarkMazer Posted October 22, 2008 Author Share Posted October 22, 2008 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 More sharing options...
Godlord Posted October 22, 2008 Share Posted October 22, 2008 [GetTickCount](http://msdn.microsoft.com/en-us/library/ms724408(VS.85).aspx)Regards, Asagndarg. Link to comment Share on other sites More sharing options...
DarkMazer Posted October 23, 2008 Author Share Posted October 23, 2008 Thanks. I guess I do learn something new every day. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now