Signature
native bind_pcvar_num(pcvar, &any:var);
Description
Binds a cvar's integer value to a global variable. The variable will then
always contain the current cvar value as it is automatically kept up to date.
Notes
-
The variable *has* to be a global or a static variable. Local variables
created within functions can not be used for technical reasons.
- Variables can not be bound to multiple cvars.
Parameters
- pcvar — Pointer to cvar
- var — Global variable to keep updated
No return value
Errors
-
If an invalid cvar pointer or variable is provided, an error
will be thrown.