I'd like to change the light's color when it's on, so it's not white, but I can't figure out where nor what lines to add in here.
default
{
state_entry()
{
llListen(6969, "", "", "");
}
on_rez( integer start_param )
{
llListen(6969, "", "", "");
}
touch_start(integer total_number)
{
llListen(6969, "", "", "");
}
listen( integer channel, string name, key id, string message )
{
if (message == "On")
{
llSetPrimitiveParams([PRIM_POINT_LIGHT,1, <1.000000, 1.000000, 1.000000>, 1.000000, 10.000000, 0.750000,
PRIM_FULLBRIGHT, ALL_SIDES,1,
PRIM_GLOW, ALL_SIDES,0.05
]);
}
else if (message == "Off")
{
llSetPrimitiveParams([PRIM_POINT_LIGHT,0, <1.000000, 1.000000, 1.000000>, 1.000000, 10.000000, 0.750000,
PRIM_FULLBRIGHT, ALL_SIDES,0,
PRIM_GLOW, ALL_SIDES,0
]);
}
}
}