
LIGHT
The light action allows an object to emit light into the surrounding area, like a lamp or a flashlight. There are many parameters that determines different aspects of the light.
To implement a light, one has to type create light [color=color] [brightness=brightness] [radius=radius] [fx=fx] [time=time] where the parameters between the[ ] are optional.
The most basic action is create light, which creates a white light that is emitted in all directions. An example is this:
Notice that the wall to the back is lighter than the one in the front. This is due to the white light emitted from the lamp.
There are also these different parameters that the light action uses:
| color | determines the color of the light; implemented by putting color=_____ (any color predefined by ActiveWorlds or hexadecimal color found at http://webmonkey.wired.com/webmonkey/reference/color_codes/); default color is white |
| brightness | determines the intensity of the light; implemented by inputting brightness=__ where the number is a positive number; default value is 0.5 |
| radius | determines how far the light shines; implemented by putting radius=__, where the number is the distance in meters; default value is 10 meters |
| fx | determines the effect that the light produces; values include fx=blink (where light goes on and off), fx=fire (causes the light to flicker like a flame), fx=flicker (causes the light to randomly turn on and off), fx=flash (makes the turn on for a short period at random times) and fx=pulse (turns lights on and off slowly) |
| time | for the fx=blink and fx=pulse effects, you can specify a time by writing time=__, where the number is time in seconds |
For example, by inputting create light color=red brightness=1.5 fx=fire radius=5, you will get the following effect:

© John Sun 2004. Comments? Problems? Suggestions? Email me.