Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripted blanket

Melah Carter
Registered User
Join date: 30 Apr 2007
Posts: 7
12-22-2008 14:10
Can anyone help me script a blanket that you click it and it covers you and click again and it rolls down. I would appreciate it. Thanks.
Klug Kuhn
Registered User
Join date: 7 Sep 2007
Posts: 126
12-22-2008 15:58
Before the script started, it is the best that you could provide 2 objects of the blankets: the folded and unfolded blankets. Also might be a good idea to use sculpty. When they're ready, i could do it for you free np :)
madddyyy Schnook
SLGuides Virtual Worlds
Join date: 2 Jan 2006
Posts: 207
12-23-2008 12:56
would it just be like an alpha switcher, alpha on and off on the 2 blankets

default
{
state_entry()
{
}

link_message(integer Sender, integer Number, string message, key ID)
{
if (message == "on";) llSetAlpha(1,ALL_SIDES);
if (message == "off";) llSetAlpha(0,ALL_SIDES);
}
}
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
12-24-2008 08:45
Most people use a 'curtain' script for this effect. There may be one in the scripting Wiki examples section. This works best (just as with curtains) if the texture still looks fine when squished in one direction. That is, typical prints won't work so well.