Author Topic: Light Issue (Need Help)  (Read 537 times)

Can someone help me with this? It is my first time creating a light, so I expected some issues. Instead of flashing red and blue, it is red, white, blue. My idea is a police light, kind of thing. If you could help, and again, this is my first time, I will give credit when released.

Code: [Select]
datablock fxLightData(PoliceLight)
{
uiName = "Police";

LightOn = true;
radius = 15;
brightness = 9;
color = "1 1 1";

FlareOn = true;
FlareTP = true;
Flarebitmap = "base/lighting/corona";
FlareColor = "1 1 1";
ConstantSizeOn = false;
ConstantSize = 1;
NearSize = 1;
FarSize = 0.5;
NearDistance = 10.0;
FarDistance = 30.0;
FadeTime = 0.1;
BlendMode = 0;

AnimColor = true;
AnimBrightness = false;
AnimOffsets = false;
AnimRotation = false;
LinkFlare = true;
LinkFlareSize = false;
MinColor = "0 0 0";
MaxColor = "1 1 1";
MinBrightness = 0.0;
MaxBrightness = 1.0;
MinRadius = 0.1;
MaxRadius = 20;
StartOffset = "-5 0 0";
EndOffset = "5 0 0";
MinRotation = 0;
MaxRotation = 359;

SingleColorKeys = false;
RedKeys = "AAZA";
BlueKeys = "AZAA";

BrightnessKeys = "AAAAAAA";
RadiusKeys = "AZAAAAA";
OffsetKeys = "AZAAAAA";
RotationKeys = "AZAAAAA";

ColorTime = 1.0;
BrightnessTime = 1.0;
RadiusTime = 1.0;
OffsetTime = 1.0;
RotationTime = 1.0;

LerpColor = false;
LerpBrightness = true;
LerpRadius = true;
LerpOffset = true;
LerpRotation = true;
};

I simply edited the RGB light.
« Last Edit: October 24, 2013, 10:43:38 PM by TB2 »

Bump, really need fixed.


The RGB light spits out 3 colors. That is why you have the color white in your light.

I don't really know much about the fxLightData though.

I don't feel like testing but try replacing this:
Code: [Select]
SingleColorKeys = false;
RedKeys = "AAZA";
BlueKeys = "AZAA";

With this:
Code: [Select]
SingleColorKeys = true;
RedKeys = "AAZZ";
RedKeys = "ZZZZ";
BlueKeys = "ZZAA";
If you can post the entire add-on I could test it.