CODE
default
{
state_entry()
{
llSay(0, "TEST: " + llGetObjectName() + " ready");
}
on_rez(integer nParam)
{
llSay(0, "TEST: " + llGetObjectName() + " rezzed");
}
touch(integer nCount)
{
llSay(0, "TEST: " + llGetObjectName() + " touch_start");
}
touch_start(integer nCount)
{
llSay(0, "TEST: " + llGetObjectName() + " touch_end");
}
touch_end(integer nCount)
{
llSay(0, "TEST: " + llGetObjectName() + " touch_start");
}
attach(key kID)
{
llSay(0, "TEST: " + llGetObjectName() + " attached: key = " + (string) kID);
}
changed(integer nChg)
{
llSay(0, "TEST: " + llGetObjectName() + " changed: what = " + (string) nChg);
}
object_rez(key kID)
{
llSay(0, "TEST: " + llGetObjectName() + " object_rez: key = " + (string) kID);
}
state_exit()
{
llSay(0, "TEST: " + llGetObjectName() + " exiting");
}
timer()
{
llSay(0, "TEST: " + llGetObjectName() + " timer");
}
link_message(integer nSender, integer nNum, string sMsg, key kID)
{
llSay(0, "TEST: " + llGetObjectName() + " link_message");
}
}
Nothing happens in any prim other than tha root.
I did some digged and found this page:http://rpgstats.com/wiki/index.php?title=Link
It make mention of a receiver script but the link doesn't go anywhere.
So, on the belief that it might work, I set about trying to do what it describes and added this code to a script in the root prim:
CODE
SendMessages()
{
integer nPrims = llGetNumberOfPrims();
if (!nPrims)
return;
integer nTemp = nPrims - 1;
llOwnerSay("Sending to " + (string) nPrims);
integer i;
for(i=1; i<nPrims+1; ++i) {
llSay(0, "Sending to " + (string) i);
llMessageLinked(i, 0, "", NULL_KEY);
llSleep(1);
}
}
Only the script in the root prim gets the linkmessage.
What am I doing wrong? or is it just not possible?
Thanks
Xaq