|
Farallon Greyskin
Cranky Seal
Join date: 22 Jan 2006
Posts: 491
|
02-24-2006 09:52
Is it just me? My scripts stop listening when I deed an obect that contains them to a group. I know listens stop responding on state changes but I re nit the listen on state_start. I've tried opening the listen up to llListen(100, "", NULL_KEY, ""  ; and still nothing (Though confining the listed to the group would be better). I reset the script on state changes and on rez, but so far nothing has made the listen work after deeding the object to a group (which happens after rez). Any clues for the clueless?  Farallon
|
|
Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
|
02-24-2006 11:01
How do you know they've stopped listening? Not doing an llOwnerSay in your listen event are you? Or an llInstantMessage to llGetOwner()? I've been bitten by that one myself.
|
|
Farallon Greyskin
Cranky Seal
Join date: 22 Jan 2006
Posts: 491
|
02-24-2006 11:10
From: sky Honey How do you know they've stopped listening? Not doing an llOwnerSay in your listen event are you? Or an llInstantMessage to llGetOwner()? I've been bitten by that one myself. Ha, yes I checked that... I'm doing an llSay in response to the commands I'm trying to give it. The script is otherwise also running and functioning, but no response to the listens the second I deed the object to the group :/
|
|
Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
|
02-24-2006 11:24
I have a group owned object that does just this: default { state_entry() { llListen(44, "", NULL_KEY, ""); } listen(integer channel, string name, key id, string message) { llSetParcelMusicURL(message); } }
(The llWhisper on channel 44 is done by a radio object that isn't deeded to the group.) I just tried it with "/44 url" in chat and it worked, so it doesn't look like an LSL bug.
|
|
Farallon Greyskin
Cranky Seal
Join date: 22 Jan 2006
Posts: 491
|
02-24-2006 11:52
THanks for the replies, especially in game. Turns out is WAS me, I had a second check for llGetOwner on the commands left over from when the listen was originally open at some point in the past that I forgot about. So yes it works as expected after all! 
|
|
Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
|
02-24-2006 12:52
Glad to help 
|
|
Harris Hare
Second Life Resident
Join date: 5 Nov 2004
Posts: 301
|
02-24-2006 15:15
Something else to consider:
Group owned scripts can't send instant messages.
Sometimes when scripting public objects that multiple people interact with, I use llInstantMessage() to let the objects speak only to specific users. You can't do that with group owned objects and it will complain (aloud) about it.
Someone should add that to the wiki.
|