Blockland Forums > Suggestions & Requests

Server sided candle light.

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

Thé Lord Tony:

Now how do I change the light server sided?

jes00:


--- Quote from: Thé Lord Tony on April 09, 2013, 06:42:37 AM ---Now how do I change the light server sided?

--- End quote ---
You could just overwrite the player light's datablock with kaje's candlelight.

Thé Lord Tony:


--- Quote from: jes00 on April 09, 2013, 07:27:01 AM ---You could just overwrite the player light's datablock with kaje's candlelight.

--- End quote ---

How?

Thé Lord Tony:

Suggestion board seems to be very inactive.

jes00:

Ok, here's what I have so far. I only need to figure out how to mount the emitter to the player's hand, everything else works fine.


--- Code: ---package CandleLight
{
function serverCmdLight(%client)
{
PlayerLight.setName(TempPlayerLight);
CandleLight.setName(PlayerLight);

parent::serverCmdLight(%client);

PlayerLight.setName(CandleLight);
TempPlayerLight.setName(PlayerLight);
}
};
activatePackage(CandleLight);

function serverCmdGreenLight(%client, %num)
{
return;
}

datablock fxLightData(CandleLight)
{
uiName = "Candle Light";

LightOn = true;
radius = 5;
brightness = 5;
color = "0.8 0.7 0.4 1";

FlareOn = false;

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

SingleColorKeys = false;
RedKeys = "AWTCFAH";
GreenKeys = "AWTCFAH";
BlueKeys = "AWTCFAH";

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

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

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

--- End code ---


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

Go to full version