This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
functions:a_getcvarfixed [2017/03/13 18:46] – created korshun | functions:a_getcvarfixed [2017/06/13 15:13] – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | # | + | ====== a_GetCVarFixed ====== |
+ | {{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 function works by calling [[zdoom> | ||
+ | |||
+ | ===== Examples ===== | ||
+ | < | ||
+ | int mul = a_GetCVarFixed(" | ||
+ | int value = FixedMul(x, mul); | ||
+ | </ | ||
+ | |||
+ | ===== See also ===== | ||
+ | * [[GetUserCVarFixed]] |