Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Listening for other avatars

George Singer
Registered User
Join date: 30 Sep 2005
Posts: 14
10-01-2005 01:33
I'm using a script that uses llgetowner to make an object react to what the owner says.

is there a way to get the object to react to another avatar by listening to what they say. for exmple I want it to react to two people in the area, one being the owner, the other not being. So can I get the name of an avatar thet has sent a command on /1 ?
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
10-01-2005 02:28
Yes, but it's not necessarily friendly to the sim.

If it's a controllable/choosable other person (the owner gives and takes permissions) you could put a listen filter in that listens to the other person when activated, for example the owner says listen Eloise Pasteur, you parse that and set up a listener with that name in it. llListen(channel, name, key, message) remember so you'd put the name into the second place of of the listen command. Remember to put a remove command in too.

If it's *any* other person then normally you'd do it with an open listener, hopefully on a different channel to 0 or 1.