Light

From Virtual Paradise Wiki
Revision as of 14:54, 21 August 2013 by Edwin (talk | contribs) (Light command)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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=]

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

Example

create light brightness=1 color=gold


Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb