Light

Light behaves a lot like a component, but isn’t one. As such, it must be added using the following syntax instead:

Light Methods

NameParameterReturnsDescription
SetIntensitypercentnilhow bright the light is
SetRadiusnumbernilhow far the light shines
SetFalloffpercentnilhow rapidly the light goes from full intensity to none
SetColourr,g,bnilred,green,blue in percent
Enablebooleanniltrue activates the light, false disables it (it keeps its settings)

Comparison Pictures

light2light1light3

Example

Of course you can just enable it at all times, or at fixed brightness. You can use the common RGB system using divisions like above, to implement easily pickable colours (for example using colorpicker)