Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Voice Activated Texture Changer

Cat Fratica
Miaow...
Join date: 28 Dec 2006
Posts: 153
06-03-2007 10:35
I have a voice activated texture changer - it works great for me, but I want it to work for anyone in a certain group - is there a freebie script that will do this? Or one that I can buy?

Or maybe someone who can help adapt the one I have? Thanks...

Cat x
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
06-03-2007 11:57
From: Cat Fratica
I have a voice activated texture changer - it works great for me, but I want it to work for anyone in a certain group - is there a freebie script that will do this? Or one that I can buy?

Or maybe someone who can help adapt the one I have? Thanks...

Cat x


Take a look at llSameGroup.
_____________________
I'm back......
Cat Fratica
Miaow...
Join date: 28 Dec 2006
Posts: 153
Errr - right...
06-03-2007 12:53
No idea how to use that - have spent half an hour trying to understand but my scripting skills are almost non existent :o)

The line that needs adapting I guess (?) is:

llListen(CHAT_CHANNEL, "", llGetOwner(), "";);

?

Cat
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
06-03-2007 15:13
Yeah, change that line to:
llListen(CHAT_CHANNEL, "", NULL_KEY, "";);

This allows anyone to trigger the item. Now find the listen() event, it'll look something like:
listen(integer channel, string name, key id, string msg) {

After that line add:
if (!llSameGroup(id)) return;

(you will have to change id accordingly to whatever the listen event uses)

And that's you! If someone tries to use your texture-changer that hasn't set themselves to the right group, then it will immediately return, ignoring their message.
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
Cat Fratica
Miaow...
Join date: 28 Dec 2006
Posts: 153
Thanjs Haravikk!
06-03-2007 15:21
Someone helped me with it in world - using method you describe - thanks!

Cat x