HookConVarChange Function

Creates a hook for when a console variable's value is changed.

void HookConVarChange(Handle convar, ConVarChanged callback)

Parameters

Handle convar

Handle to the convar.

ConVarChanged callback

An OnConVarChanged function pointer.

Errors

Invalid or corrupt Handle or invalid callback function.