Jun 19th '13, 06:24
A liquid has a min and max height, and a control light which decides at what height the liquid is at between those min and max height values.
Example given: Min height 1 wu, max height 3 wu. The light will decide where the liquid is between 1-3 WU.
The light control the height with its primary and secondary active triggers. These triggers activate after each other and loop. The period decides how long each trigger is active. Period uses ticks, where 30 ticks = 1 second.
Example given: Primary trigger has period of 60 ticks, secondary trigger has a period of 90 ticks.
Primary is on for 2 seconds, secondary is on for 3 seconds, loop
Primary is on for 2 seconds, secondary is on for 3 seconds, loop
Primary is on for 2 seconds, secondary is on for 3 seconds, loop
...and so on
The intensity value of the primary and secondary trigger decide the height of the liquid by percentage. 100% intensity = max height. 0% intensity = min height. If going by previous examples, then 100% intensnity = 3 wu, and 0% intensnity = 1 wu.
The function decides how the light transition from the primary to the secondary trigger and vice versa. If the function is constant, then the intensity will switch instantly from one trigger to the other. For liquids the best functions are linear or smooth. If the primary trigger is intensity 100%, and the secondary trigger is 0%, period 90, function smooth. When the secondary trigger actives, it will start at 100% intensity, and then over 3 seconds gradually lower the intensity to 0%.