Light: Difference between revisions
Jump to navigation
Jump to search
Light command |
No edit summary |
||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
'''light''' [''color=''] [''radius=''] [''brightness=''] [''fx=''] [''time=''] [''maxdist=''] | '''light''' [''color=''] [''radius=''] [''brightness=''] [''fx=''] [''time=''] [''maxdist=''] [''angle=''] [''type=''] | ||
==Arguments== | ==Arguments== | ||
; Color : The light color<br>'''Values:''' Color Names, Hexadecimal colors<br>'''Default:''' White | ; Color : The light color<br>'''Values:''' Color Names, Hexadecimal colors<br>'''Default:''' White | ||
Line 12: | Line 12: | ||
; Time : Interval/length of the light animation effect in seconds<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 1.0 | ; Time : Interval/length of the light animation effect in seconds<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 1.0 | ||
; Maxdist : Maximum distance in meters at which the light will be visible<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 1000.0 | ; Maxdist : Maximum distance in meters at which the light will be visible<br>'''Values:''' Decimal numbers greater than 0.0<br>'''Default:''' 1000.0 | ||
; Type : Changes the type of light.<br />'''Values:''' spot<br />'''Default:''' Not set | |||
; Angle : Changes the amount of light emitted.<br />'''Prerequisites:''' Spot type<br />'''Values:''' Decimal numbers greater than 0.0<br />'''Default:''' 45 | |||
==Example== | ==Example== |
Latest revision as of 18:44, 27 January 2017
Light | ||
---|---|---|
[[Image:{{{4}}}|center|middle|200x200px]] | ||
{{{5}}} | ||
Build required | 1 | |
Version required | 0.3.20 |
The light command creates a light source attached to the object
Usage
light [color=] [radius=] [brightness=] [fx=] [time=] [maxdist=] [angle=] [type=]
Arguments
- Color
- The light color
Values: Color Names, Hexadecimal colors
Default: White - Radius
- The radius of the light in meters
Values: Decimal numbers greater than 0.0
Default: 10.0 - Brightness
- Light brightness, internally the color values are multiplied by this value
Values: Decimal numbers greater than 0.0
Default: 0.5 - Fx
- Light animation effect
Values: blink, fadein, fadeout, fire, pulse, rainbow
Default: Not set - Time
- Interval/length of the light animation effect in seconds
Values: Decimal numbers greater than 0.0
Default: 1.0 - Maxdist
- Maximum distance in meters at which the light will be visible
Values: Decimal numbers greater than 0.0
Default: 1000.0 - Type
- Changes the type of light.
Values: spot
Default: Not set - Angle
- Changes the amount of light emitted.
Prerequisites: Spot type
Values: Decimal numbers greater than 0.0
Default: 45
Example
create light brightness=1 color=gold
|
|
Triggers: |
|
Commands: |
Animate • Animation • Ambient • Camera • Color • Diffuse • Frame • Framerate • Group • Light • Move • Name • Noise • Normalmap • Opacity • Path • Picture • Rotate • Say • Shear • Scale • Sign • Solid • Sound • Specular • Specularmap • Teleport • Teleportx • Teleportxyz • Texture • Url • Visible • Web |