8,564
edits
m (flashing light added) |
|||
Line 179: | Line 179: | ||
<texture>Light.rgb</texture> | <texture>Light.rgb</texture> | ||
</animation> | </animation> | ||
===Flashing light=== | |||
To make a flashing light we need to create two objects. One containing the (emitted) light and one containing the light as it would be shown when disabled/turned off. Then we add the following code to our .xml file: | |||
<animation> | |||
<type>timed</type> | |||
<object-name>LightsOn</object-name> | |||
<object-name>LightsOff</object-name> | |||
<use-personality type="bool">true</use-personality> | |||
<branch-duration-sec> | |||
<random> | |||
<min>2.9</min> | |||
<max>3.1</max> | |||
</random> | |||
</branch-duration-sec> | |||
<branch-duration-sec> | |||
<random> | |||
<min>1.9</min> | |||
<max>2.1</max> | |||
</random> | |||
</branch-duration-sec> | |||
</animation> | |||
You can set the values (time in seconds that a certain object is shown) to your needs. The upper ones are for the LightsOn object, the lower ones for the LightsOff object. | |||
[[Category:Howto|Illuminate faces]] | [[Category:Howto|Illuminate faces]] |