Raised This Month: $ Target: $400
 0% 

Show the time before restart


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-04-2009 , 22:17   Re: Show the time before restart
Reply With Quote #2

I personally have not done something to this effect, so I cannot provide a code example, but you can tie an entity's think function to a specific time (down to 0.1 seconds) when next to think.

In your case, you would tell it the next think is in 1.0 seconds. You would keep count in a global variable somewhere, and when you get to a certain point, you would not give it a next think time.

Quote:
Originally Posted by Alka View Post
Oh, in this case have a look on this tutorial -> http://forums.alliedmods.net/showthr...highlight=task

All you have to do is to make an ent, hook the Think forward, check for that ent, and set its next_think to 0.1 for best results.
The 0.1 was for a stopwatch, but you get the idea (I hope).
__________________
Bad_Bud is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode