Author Topic: Animating a light.  (Read 1900 times)

How would I animate a light?

So, I suppose no one knows how to do this?

Events.
Now get alot of peopole to quote this below me :D

What exactly are you trying to do?

What exactly are you trying to do?
I think he's trying to make a special light type. Like the strobe or the RGB lights.


TheArmyGuy, notice how this is in *coding* help?

Okay, what I'm trying to do was to make a light that would flicker like a broken bulb would. I was editing Yellow Flashing light from default when I was I cant change the pattern of the light flashes. only Speed, Duration, and color. This leads me to believe it may not be a part of code, but Id like to check.

Those of you who will say "Use events" this would be a good light to have so instead of making all the events then having to activate them with a relay going consonantly in the background, its just a settable light.

Sorry to say, but people stopped asking these questions long ago. As such, not many people care to remember how anymore.

Code: [Select]
datablock fxLightData(FlickerRLight)
{
uiName = "Red Flickering";
LightOn = true;
radius = 1;
brightness = 10;
color = "1 0 0";
FlareOn = true;
FlareTP = true;
Flarebitmap = "base/lighting/corona";
FlareColor = "1 0 0";
ConstantSizeOn = false;
ConstantSize = 1;
NearSize = 1;
FarSize = 0.5;
NearDistance = 10.0;
FarDistance = 30.0;
FadeTime = 0.01;
BlendMode = 0;
AnimColor = false;
AnimBrightness = true;
AnimOffsets = false;
AnimRotation = false;
AnimRadius = true;
LinkFlare = true;
LinkFlareSize = true;
MinColor = "1 1 0";
MaxColor = "0 0 1";
MinBrightness = 0.1;
MaxBrightness = 1.0;
MinRadius = 1;
MaxRadius = 5;
StartOffset = "-5 0 0";
EndOffset = "5 0 0";
MinRotation = 0;
MaxRotation = 359;
SingleColorKeys = true;
RedKeys = "AAAAAAA";
GreenKeys = "DHSFJYJ";
BlueKeys = "ZZZZZZZ";
BrightnessKeys = "AAAZAAZAAAAZZAZ"; //this is what you want to edit A is MaxBrightness Z is MinBrightness
RadiusKeys = "AAAZAAZAAAAZZAZ"; This too
OffsetKeys = "AZAAAAA";
RotationKeys = "AZAAAAA";
ColorTime = 1;
BrightnessTime = 1;
RadiusTime = 1;
OffsetTime = 1;
RotationTime = 1;
LerpColor = false;
LerpBrightness = true;
LerpRadius = false;
LerpOffset = false;
LerpRotation = false;
};

That code doesn't work right..

That code doesn't work right..
How doesnt it, I took it straight from my Light Pack

Lights not showing up in light menu.


I thought he would leave the comments out, not just copy paste =\