//this is the main one in main prim
CODE
default
{
state_entry()
{
llListen(0, "", llGetOwner(), "");
llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <1, 1, 1>, 1.0, 2.0, 2.0]);
}
listen(integer chan, string name, key id, string message)
{
if (message = "lighton")
{
llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <1, 1, 1>, 1.0, 2.0, 2.0]);
llMessageLinked(LINK_ALL_CHILDREN, -999, "lighton", NULL_KEY);
}
if (message = "lightoff")
{
llSetPrimitiveParams([PRIM_POINT_LIGHT, FALSE, <1, 1, 1>, 1.0, 2.0, 2.0]);
llMessageLinked(LINK_ALL_CHILDREN, -999, "lightoff", NULL_KEY);
}
}
}
//this is the lil one in the child prim
CODE
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <1, 1, 1>, 1.0, 2.0, 2.0]);
}
link_message(integer sender_num, integer num, string str, key id)
{
if (num = -999)
{
if (str = "lighton")
{
llSetPrimitiveParams([PRIM_POINT_LIGHT, TRUE, <1, 1, 1>, 1.0, 2.0, 2.0]);
}
if (str = "lightoff")
{
llSetPrimitiveParams([PRIM_POINT_LIGHT, FALSE, <1, 1, 1>, 1.0, 2.0, 2.0]);
}
}
}
}
Please try it and see if it is messing up for you. I looked in jira and these forums abit but nothing indicating a prob

