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.
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;
};