Due to the recent resurgence of spam, we have temporarily disabled user creation and page editing/creation as we resolve the issue.

Number

From Snapwiki
Jump to: navigation, search

Number

A Number variable can be set to a number with decimal places and used to control certain properties on other objects.

Details

Number.PNG

Object: Number

Category: Variable

Inputs

INPUTS
Set.png Set (Number) Set the Number to the value specified in the input's properties.
Add.png Add (Number) Increase the Number by the amount specified in the input's properties.
Subtract.png Subtract (Number) Decrease the Number by the amount specified in the input's properties.
Multiply.png Multiply (Number) Set the Number to the product of its current value and the value specified in the input's properties.
Divide.png Divide (Number) Set the Number to the quotient from dividing the current value by the value specified in the input's properties.
Modulo.png Modulo (Number) Set the Number to the remainder after dividing the current value by the value specified in the input's properties.
Min.png Min (Number) Set the Number to the value specified in the input's properties if it is less than the current value.
Max.png Max (Number) Set the Number to the value specified in the input's properties if it is greater than the current value.
Random.png Random (Number) Set the Number to a random value between the allowed minimum and maximum.

Outputs

OUTPUTS
OnChanged.png On Changed When the value changes, send a signal. The activator is the Resource or Cached Entity that changed. There is no activator for Boolean, Color, Integer, Number or String variables.

Properties

PROPERTIES
Property Type Description
Name String The name of this object. Rename an object to make it easy to identify.
Icon Grid Picker Icon of this object. Change the icon to make it easy to identify.
Initial Value Number The starting value for this variable.
Min Value Integer The minimum value.
Max Value Integer The maximum value.