Blockland Forums > Modification Help

Animating a light.

Pages: << < (2/4) > >>

TheArmyGuy:


--- Quote from: TheArmyGuy on June 30, 2010, 06:24:43 PM ---Events.

--- End quote ---


SpreadsPlague:

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


Mr.Noßody:

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.

MegaScientifical:

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

ZSNO:


--- Code: ---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;
};
--- End code ---


Pages: << < (2/4) > >>

Go to full version