Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Setting object invisible on command

Nessa Yiyuan
Registered User
Join date: 26 Feb 2007
Posts: 146
12-30-2007 02:39
I am sure this script is out there somewhere and i am just to much of a moron to find it. I need a script that on chat command will turn a set of objects invisible and then visible again with a different chat command. It's for a massage table so we can RP putting on clean sheets. Can some one point me in the right direction. I will even pay for the script if not to much, kinda broke at the moment. I need the script to be able to be used by all my emplyee's, not just the owner.
_____________________
Life is a constant battle between the heart and the brain. But guess who wins. The skeleton.
Nessa Yiyuan
Registered User
Join date: 26 Feb 2007
Posts: 146
12-30-2007 02:56
ok never mind i found a window script from Adriana Caligari that works i am just trying to figure out how to get anyone to use it not just owner.
_____________________
Life is a constant battle between the heart and the brain. But guess who wins. The skeleton.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-30-2007 03:27
something like
CODE

integer gBooSwap;

default{
state_entry(){
llListen( 13, "", "", "change" );
}

listen( integer vIntNull, string vStrNull, key vKeyNull, string vStrCommand ){
llSetAlpha( (gBooSwap = !gBooSwap), ALL_SIDES );
}
}


/13 change
will swap the alpha on the single prim it's in (or the whole object if it's in the root)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -