Author Topic: Where is the light folder located?  (Read 669 times)

I use the launcher.
I wanted to know so I could remake the dark light.

Do you mean base/lighting?

Do you mean base/lighting?

I mean the ones you can apply on bricks

Add-ons, or built into the .dsos.

I mean the ones you can apply on bricks

those are datablocks inside add-ons.

look in your add-ons folder, you will see a default add-on named Light_Basic.

in there, you will see a script containing bunch of datablocks, this is one of the datablocks for the Red Light:

Code: Light_Basic.cs (14 lines)
datablock fxLightData(RedLight)
{
    uiName = "Red Light"; // the name you see in the lights list when you wrench a brick.

   LightOn = true;
    radius = 15;
    brightness = 9;
    color = "1 0 0 1"; // RGBA floats

   flareOn = true;
    flarebitmap = "base/lighting/corona"; // look in base/lighting for more flare bitmaps
   NearSize    = 2;
    FarSize = 1;
};


the member fields are pretty self explanatory, just rename the datablock to something else and modify it to your needs. if you want more control over your lights, just look in Light_Basic.cs. theres a TON of fields in Bright light.

if you want a 'dark' light, then just change the brightness to a negative value.



correct me if i'm wrong on anything.


where do i name the datablock?
These parts
Quote
datablock fxLightData(YourLight'sName)
Quote
uiName = "Your Light's Name";

Ah, done. I will provide a DL.