Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Discussion: Phantom Alpha Door or Wall

ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
09-13-2006 12:12
This script uses voice/chat passwords on private channel 5 to make a door or wall open/close and lock/unlock. You can give the passwords to anyone you want to be able to access the door.

Shazam = 0pen/unlocked: wall is invisible and you can walk through it.
Presto = Closed/Locked, alpha shows all of texture and you cannot walk through it.

CODE
//Phantom Alpha Door or Wall by ArchTx Edo
//This script uses voice-chat commands to make a door or wall open/close and lock/unlock using voice/chat commands on channel 5.
//

default
{
state_entry()
{
//llListen(5,"",llGetOwner(),""); //only owner can change it.
llListen(5,"","",""); //anyone can change it.
}
listen(integer chan, string name, key id, string msg)
{

//------------------------------------------------------
if(msg=="presto")//close
{
llSetAlpha(1,ALL_SIDES);//1.0 shows all of the texture, no transparency.
llSetStatus (STATUS_PHANTOM, FALSE); //FALSE object collides with others (is not phantom), you cannot walk thru it.
}
//------------------------------------------------------
if(msg=="shazam")//open
{
llSetAlpha(0,ALL_SIDES);//0.0 shows none of the texture, it is transparent.
llSetStatus (STATUS_PHANTOM, TRUE); //TRUE object does not collide with others (is phantom), you can walk thru it.
}
}
}
_____________________

VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30
http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240
http://shop.onrez.com/Archtx_Edo
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Original Thread
09-13-2006 20:05
/15/99/137152/1.html
_____________________
i've got nothing. ;)
Jesseaitui Petion
king of polynesia :P
Join date: 2 Jan 2006
Posts: 2,175
09-13-2006 20:08
Wow cool, thanks
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
09-14-2006 00:48
basically the show hide script with new keywords