|
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
|
08-12-2006 09:42
Hi,
I am very confused by the attachment function of the scripting language. I would have expected three parameters: WHAT to attach, WHOM to attach it to and WHERE to attach it. Obviously only the third parameter is available so I wonder how the other two can be determined and set.
Here is what I am trying to to. Either the avi has a blindfold in the inventory or there is one in a poseball. The avatar sits on the poseball and I want the blindfold to be attached, so that the HUD goes blank. Since the avatar is moves into a box when sitting this would be just great. When the avatar is moved out of the box the blinder would come off.
Is this in any way possible?
If so- what am I missing here? I have considered using a listener on the blindfold that would attach itself when it received a certain message (solving the WHAT and WHOM) but as far as I understand onjects in inventory are passive and do not listen. So the only way would be to wear the blindfold, say the command and have the item change its alpha channel.
This would work but, hey, who is running around all day with a HUD blinder? So - any way to attach it would be much better.
I hope you can help me with this one.
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
08-12-2006 11:32
Items can be scripted to attach themselves, and only themselves, and only to their owner. That's why the other parameters you are expecting aren't there.
That means you can't do your system quite as envisaged. You can give them the blindfold item and tell them to rez it then autoattach that (they will get asked for permission still), which is probably the closest you can get.
You can have the blindfold chat to the ball so if they take it off they kicked off the ball. I use a variant of this for the blindfold I sell. But directly as you want, sorry, no can do.
|
|
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
|
08-12-2006 14:27
I was afraid of this Well - thanks for the info - so I must extert some cooperation from the victims. I will then not use attach but if they wear it I will just control the alpha channel with the script - no permission required for this since it will be via channel commands. Since the blindfold will be used on numerous occasiosn I think it is OK for them to wear it. Will only cause problems with avis wearing glasses - ah well, another attchement point then. Thanks again for your input.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-13-2006 00:21
Right. And you CAN set up the seat to unsit them if they AREN'T wearing your alpha-controlled blindfold (you can't detect attachments, but attachments can communicate just fine).... 
|