native bind_pcvar_float(pcvar, &Float:var);
pcvar | Pointer to cvar |
var | Global variable to keep updated |
Binds a cvar's float value to a global variable. The variable will then always contain the current cvar value as it is automatically kept up to date.
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.
This function has no return value.
If an invalid cvar pointer or variable is provided, an error will be thrown.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.