|
Kain Cleaver
Registered User
Join date: 24 Jan 2006
Posts: 178
|
04-25-2008 20:35
I was wondering if there is a way to determine the TYPE of item that is speaking something via the listen command.
in other words.. if Avatar A says Hello.. and Object B says Hello.. is there a way that i can eliminate the Avatar's Hello? or atleast have the object determine that a object said something insted of a avatar?
does that make sence?
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-25-2008 20:51
Makes perfect sense. Unfortunately, there isn't a very simple way to do this. llGetOwnerKey() returns the same key you give it if the key represents an avatar, but does the same thing for an object that is not in the same sim. llGetObjectDetails() with OBJECT_OWNER behaves similarly, but may return an empty list for either an object or an avatar (not always) if they aren't in the same sim. You can try llRequestAgentData() to get a detail about the avatar, like it's name, and then assume the key represents an object if you don't get a reply, but that's not a very friendly solution either.
Unfortunately there's no corollary to llDetectedType() that you can use during a listen event. It would be VERY useful if there were.
|
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
04-25-2008 20:57
/me adds https://jira.secondlife.com/browse/SVC-2231 . From: someone llDetectedType in listen()
It would be nice to be able to call llDetectedType (or something) in a listen event so a script could easily figure out if it's being talked to by an object or by an avatar
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-25-2008 21:45
Not 100% sure but thought they were going to change llGetObjectDetails to where it would limit it to 96 meters in adjacient sims? If that is true then you could run checks with it and it should cover any shouts from adjacent sims plus any llRegionSay's?
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-25-2008 23:02
From: Jesse Barnett Not 100% sure but thought they were going to change llGetObjectDetails to where it would limit it to 96 meters in adjacient sims? If that is true then you could run checks with it and it should cover any shouts from adjacent sims plus any llRegionSay's? For avatars that was the plan. I wasn't aware that the function was slated to work, or ever did work, on objects in a different sim.
|