This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| functions:getcvarfixed [2017/03/13 15:38] – created korshun | functions:getcvarfixed [2017/03/17 15:11] (current) – korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== GetCVarFixed ====== | ====== GetCVarFixed ====== | ||
| {{tag> | {{tag> | ||
| - | '' | + | # |
| - | + | ||
| - | <note important> | + | |
| - | + | ||
| - | ===== Description ===== | + | |
| - | Returns the value of an int or float CVar as a fixed-point number. | + | |
| - | + | ||
| - | Returns 0 if: | + | |
| - | * the CVar doesn' | + | |
| - | * the CVar is a string that doesn' | + | |
| - | * the CVar is not an integer, a float or a string. | + | |
| - | + | ||
| - | The function works by calling [[zdoom> | + | |
| - | + | ||
| - | ===== Examples ===== | + | |
| - | < | + | |
| - | int mul = GetCVarFixed(" | + | |
| - | int value = FixedMul(x, mul); | + | |
| - | </ | + | |
| - | + | ||
| - | ===== See also ===== | + | |
| - | * [[GetUserCVarFixed|GetUserCVarFixed()]] | + | |