This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
number [2020/02/26 15:13] – created justin | number [2021/04/21 18:30] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | A **number** is a scripting data type for representing numeric values. When specifying these values in scripts they should only contain the digits 0-9 (no commas) with an optional decimal point for fractions. The [[random number]] syntax or an arithmetic expression can be used in place of a literal value where a numeric value is expected. | + | A **number** is a scripting data type for representing numeric values. When specifying these values in scripts they should only contain the digits 0-9 (no commas) with an optional decimal point for fractions. |
====Examples: | ====Examples: | ||
<code bauxite> | <code bauxite> | ||
- | wait(2.75) | + | wait(2.75); |
</ | </ | ||
<code bauxite> | <code bauxite> | ||
- | set_movement_speed(player, | + | set_movement_speed(player, |
</ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |