View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:46 pm



Reply to topic  [ 6 posts ] 
 Timer Value 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Timer Value
Can somebody remind me what the function is to get the value of a timer as a variable?

Thanks.


Thu Feb 24, 2011 2:15 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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.


Thu Feb 24, 2011 2:28 am
Profile WWW
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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.


Thu Feb 24, 2011 2:37 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post 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.


Thu Feb 24, 2011 2:43 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Timer Value
There's something like Timer.ElapsedSimTimeMS, but I dunno the exact name of it.


Thu Feb 24, 2011 7:27 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Timer Value
No Grif you happen to be exactly right, I found it on the wiki just before I read your post.


Fri Feb 25, 2011 2:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.166s | 15 Queries | GZIP : Off ]