bind_pcvar_float

Синтаксис

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.

Връщаща стойност

Тази функция няма връщаща стойност.

Грешка

If an invalid cvar pointer or variable is provided, an error
will be thrown.