User Tools

Site Tools


number

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
number [2020/02/26 15:13] – created justinnumber [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> </code>
  
 <code bauxite> <code bauxite>
-set_movement_speed(player, 60)+set_movement_speed(player, 60);
 </code> </code>
  
 ~~NOTOC~~ ~~NOTOC~~
number.1582758794.txt.gz · Last modified: 2020/02/26 15:13 by justin