Raised This Month: $51 Target: $400
 12% 

Create a timer based on cvar value?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Carl Sagan
Senior Member
Join Date: Jan 2014
Old 02-15-2014 , 11:41   Create a timer based on cvar value?
Reply With Quote #1

How would I create a timer so that the interval is the value of a cvar?

For example, say I have the cvar sm_timerinterval set to 5.0

How would I create a timer that uses the value of sm_timerinterval for its interval?
Carl Sagan is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 02-15-2014 , 12:13   Re: Create a timer based on cvar value?
Reply With Quote #2

Well, you can try something like that

PHP Code:
new ConVarHandle CreateConVar"sm_timerinterval""0.5" );




new 
Float:ValueOfConvar GetConVarFloatConVarHandle );
CreateTimerValueOfConvarTimerHandler ); 
KissLick is offline
Reply



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 02:20.


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