It would be really cool to be able to tie a "hook" to execute a block/function of code when the .set fucntion is used to alter the value of the variable.
This would allow for a virtual callback when a variable is changed.
This would allow for a virtual callback when a variable is changed.
Add the 'notify" flag to the variable and you can use the event "server_cvar" I believe.




SuperDave posted on 2008-09-18 17:48:17