Data Realms Fan Forums http://45.55.195.193/ |
|
Timer Value http://45.55.195.193/viewtopic.php?f=73&t=21570 |
Page 1 of 1 |
Author: | Roast Veg [ Thu Feb 24, 2011 2:15 am ] |
Post subject: | Timer Value |
Can somebody remind me what the function is to get the value of a timer as a variable? Thanks. |
Author: | TheLastBanana [ Thu Feb 24, 2011 2:28 am ] |
Post subject: | Re: Timer Value |
Code: -timer.LeftTillSimMS(0) That works, since it returns how long until a time is reached. If that time is 0, it'll always be a negative value, so you just get its negative. |
Author: | TheLastBanana [ Thu Feb 24, 2011 2:37 am ] |
Post subject: | Re: Timer Value |
Mine is assuming you already have a timer stored in a variable called "timer". I figured the question was how to get the time from a timer, not how to initialize it in the first place. Your answer would be part of this, too. |
Author: | Roast Veg [ Thu Feb 24, 2011 2:43 am ] |
Post subject: | Re: Timer Value |
Thanks, TLB. Yours was what I was looking for, although I seem to remember a function specifically for this, but I can't remember what it was. |
Author: | Grif [ Thu Feb 24, 2011 7:27 am ] |
Post subject: | Re: Timer Value |
There's something like Timer.ElapsedSimTimeMS, but I dunno the exact name of it. |
Author: | Roast Veg [ Fri Feb 25, 2011 2:56 am ] |
Post subject: | Re: Timer Value |
No Grif you happen to be exactly right, I found it on the wiki just before I read your post. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |