Number

Last modified by KDearnley on 2023/07/31 14:06

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.pngSet (Number)Set the Number to the value specified in the input's properties.
Add.pngAdd (Number)Increase the Number by the amount specified in the input's properties.
Subtract.pngSubtract (Number)Decrease the Number by the amount specified in the input's properties.
Multiply.pngMultiply (Number)Set the Number to the product of its current value and the value specified in the input's properties.
Divide.pngDivide (Number)Set the Number to the quotient from dividing the current value by the value specified in the input's properties.
Modulo.pngModulo (Number)Set the Number to the remainder after dividing the current value by the value specified in the input's properties.
Min.pngMin (Number)Set the Number to the value specified in the input's properties if it is less than the current value.
Max.pngMax (Number)Set the Number to the value specified in the input's properties if it is greater than the current value.
Random.pngRandom (Number)Set the Number to a random value between the allowed minimum and maximum.

Outputs

OUTPUTS
OnChanged.pngOn ChangedWhen 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
PropertyTypeDescription
NameStringThe name of this object. Rename an object to make it easy to identify.
IconGrid PickerIcon of this object. Change the icon to make it easy to identify.
Initial ValueNumberThe starting value for this variable.
Min ValueIntegerThe minimum value.
Max ValueIntegerThe maximum value.