Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with Change texture via voice script!

Glieason Caproni
Registered User
Join date: 28 Nov 2008
Posts: 2
12-26-2008 15:17
I am using this change texture via voice script, it is the kind that you have to have the prims UUID number to change the texture. It is set right now to only work for the Owner. I would like anyone with the UUID number to be able to change the texture, or even just have an access list of Avatars that can change the texture. I don't know how to fix it, I will gladly send anyone the script to look at, or you can just tell me what I need to change to get it to work. Please anyone help me!


Thanks!
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
12-26-2008 15:35
There are two places where the "owner only" constraint might be put: the script could be listening only to chat from the owner, or it could be manually filtering it out every time a chat message arrives. (It could be using both methods).

First of all, the script will be setup to "listen" to chat, by using a function something like this:

CODE

llListen(0, "", llGetOwner(), "");


It would usually appear in a "state_entry" event, and the "0" number might be different. Anyway, where it says "llGetOwner()" there, replace it with "NULL_KEY". (The script might say something else there, but whatever it is, replace it with "NULL_KEY";).


The other place to look for the constraint is the "listen" event. Somewhere near the top of it, you will probably see something like this:

CODE

if (id == llGetOwner()) return;


Just delete it if it's there (or maybe just comment it out, by putting // at the start of the line).


I hope that helps. It's usually a fairly trivial change to make, but scripts can look very different, so it can sometimes be hard to find the relevant bits if you're not familiar with scripting.
Glieason Caproni
Registered User
Join date: 28 Nov 2008
Posts: 2
12-27-2008 06:34
Pedro you are the man! That worked perfectly. In case you couldn't tell I am not familiar with scripting in SL, but I am trying to learn. Thank you sooo much! Vote for Pedro!
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
12-28-2008 17:41
You're very welcome. Happy to help! :-)