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
Revision as of 2016-05-13T00:27:43 by Tmustaine (Talk | contribs) (Created page with "== Number == A Number variable can be set to a number with decimal places and used to control certain properties on other objects. {| class="wikitable" style="width: 60%;" !...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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