I've had my
lantern out for months and only recently realized that the light mounted to the item only works for the host.
The toggling script is quite simple. The animation and emitter works individually it seems, but the light does not.
function lantern_OFF_Image::onFire(%this, %obj, %slot)
{
%obj.schedule(0,"playThread",2,shiftRight);
%obj.schedule(200,"playThread",1,armReadyRight);
%obj.unMountImage(0);
%obj.mountimage(lantern_ON_Image, 0);
}
Is this a problem with this default light adding thing or something else? I remember reading that when making changes (mounting?) to an item datablock, all the items in the server get the same changes.
datablock ShapeBaseImageData(lantern_ON_Image)
{
-snip-
hasLight = true;
lightType = "ConstantLight";
lightRadius = 30;
lightColor = "1.0 0.5 0.0 1.0";
-snip-
But the point is, emitter and animations work per player uniquely, but the light only works for the host.