Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Two different hats on a ave by touch.

Den Hare
Registered User
Join date: 23 Jul 2004
Posts: 4
10-22-2005 09:10
I would like an ave to wear two different hats by touching it by the wearer only. When touched the hat would be different. Call it hat1 and hat2

This must be a simple script if only I knew how. Could someone please help me?
Logan Bauer
Inept Adept
Join date: 13 Jun 2004
Posts: 2,237
10-22-2005 09:13
Hmm, unfortunately there's no way I know of to force hat1 to detach and hat2 to appear, however I think your solution would be to link both hats, and have scripts that would make 1 completely transparent and the other one visible on touch.
Torley Linden
Enlightenment!
Join date: 15 Sep 2004
Posts: 16,530
10-22-2005 09:54
Yeah... I was thinking of something related here along the lines of ODDJOB from James Bond. You know, take the hat off, toss it, disembowel, etc.
_____________________
Mustelid Carnot
Made from quality ferrets
Join date: 7 Sep 2005
Posts: 106
10-22-2005 13:31
From: Torley Torgeson
Yeah... I was thinking of something related here along the lines of ODDJOB from James Bond. You know, take the hat off, toss it, disembowel, etc.


You're a weeeird gal, you know that? :)
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
10-23-2005 19:14
there is two ways to do it, one is to have a touch script that send the visibility command to all sub scripts at ones. Or one script that cycles through the hole link set setting visibility as it's needed. Ether way you can store visibility in a list or use the objects names to determined their visibility. I like using names. Because it's easy to change the names / view the name of an object. And you can rearrange the hole link set any way, and the object still functions properly.

The one script method is elegant; but the link-message causes a faster transition. Making the link-message better for animation. Even if it's 126 scripts vs 1.
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
10-23-2005 19:20
Invisible hat + visible hat is definitely the best idea. Unfortunately, there is no way to rez an object in an attached position.