So I have the following script. I know it's set to a listen channel (did not get it to work) and I just want a simple edit or script to go transparent and solid on a single prim
//This is the command used to make the object show itself. You can change it to what ever you like.
string sCommand = "show";
//This is the command used to make the obnject hide itself. You can change it to what ever you like.
string hCommand = "hide";
//This is the channel which the object will listen to. It is set to channel 9 so to make it work you will say '/9' then the command.
integer chan = 9;
//this is the time that the object will display itself for before it automatically hides itself, it is set to 0 so you will se the box when you rez it.
integer time = 0;
//This script automatically turns the object to phantom, If you wish it to be solid then change this value to FALSE.
integer switch = TRUE;
//---------------------------------------------------------------------
default
{
state_entry()
{
llListen(chan,"",NULL_KEY,"");
llSetStatus(STATUS_PHANTOM,switch);
llSetTimerEvent(time);
}
listen(integer channel, string name, key id, string msg)
{
if (msg == sCommand)
{
llSetAlpha(1,ALL_SIDES);
llSetTimerEvent(time);
}
if (msg == hCommand)
{
llSetAlpha(0,ALL_SIDES);
}
}
timer()
{
llSetAlpha(0,ALL_SIDES);
}
on_rez(integer start_param)
{
llResetScript();
}
}