Light

From Virtual Paradise Wiki
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=] [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


Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb