Raised This Month: $ Target: $400
 0% 

call a function when certain cvar changes its value?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-02-2020 , 11:02   Re: call a function when certain cvar changes its value?
Reply With Quote #10

Store the cvar value in a global variable, set_task, compare the current cvar value with the one you saved in the global variable, if the value is different, execute the function you want - easy.

Hook cvar change with orpheu - medium.

Or just upgrade to 1.9 and do what they told you above - very easy/recommended.
__________________









Last edited by CrazY.; 06-02-2020 at 11:08.
CrazY. 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 16:55.


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