Jump to content

attachments never hear owner-directed chat on chanel 0


Quistess Alpha
 Share

You are about to reply to a thread that has been inactive for 825 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I noticed some odd behavior when doing a sanity test:

(in-world rezzed object:)

default
{   touch_start(integer total_number)
    {   llRegionSayTo(llGetOwner(),0,"RegionSaidTo.");
        llRegionSayTo(llGetOwner(),2,"RegionSaidTo. (chan 2)");
        llSay(0,"Normal Say.");
        llSay(2,"Normal Say. (chan 2)");
    }
}

(attachment)

default
{   state_entry()
    {   llListen(0,"","","");
        llListen(2,"","","");
    }
    listen(integer Channel, string Name, key ID, string Text)
    {   llOwnerSay("Heard"+(string)Channel+": "+Text);
    }
}

(result:)

Quote

[16:17] Object: RegionSaidTo.
[16:17] Object: Normal Say.
[16:17] Attachment: : Heard2: RegionSaidTo. (chan 2)
[16:17] Attachment: : Heard0: Normal Say.
[16:17] Attachment: : Heard2: Normal Say. (chan 2)

Notice that the attachment does not respond to regionSayTo the owner on channel 0, but does respond on channel 2. I went to check the wiki to see if this caveat is already documented/ is expected behavior, but I couldn't actually spot the part in the listen pages where it says attachments can hear direct communication to owner. In my actual use case I don't think this is going to be an issue, but it is weird and interesting.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 825 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...