Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Listen to another object

Eubey Cork
Registered User
Join date: 25 Apr 2006
Posts: 5
05-04-2006 16:47
Hey i know that llListen(channel, "", llGetOwner(), "";); makes it so it listens for its owner to say soemthing on chanel. What if I want to have it listen to a 'control' object? I am trying to do it so that if the item hears a command from its control, it becomes fully transparent...
Brookston Holiday
Registered User
Join date: 29 May 2005
Posts: 58
05-04-2006 16:55
put in NULL_KEY instead of llGetOwner()

llListen(Channel, "name of contrl object", NULL_KEY, "";);

you don't even need name of control object but it helps filter out stuff
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-04-2006 17:57
And you can do "" instead of NULL_KEY. That makes the code a bit cleaner.
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
05-04-2006 18:25
If your objects are linked, for extra speed and other benefits you might want to try llMessageLinked() instead of the chat filter, too...
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
05-05-2006 06:46
From: Brookston Holiday
put in NULL_KEY instead of llGetOwner()

llListen(Channel, "name of contrl object", NULL_KEY, "";);

you don't even need name of control object but it helps filter out stuff


If you have the key of the control object, use that in place of NULL_KEY.

If you filter object messages by name, someone can make an object of their own, give it the same name, and use it to fake control messages.