Jump to content

Lundan

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thnak you Sassy, this works only thing is now everything is able to be clicked and turned invisible. Should I have dropped the script only in the ones I want transparent when clicked or the main prim like I have done?
  2. Okay, so I have the script to make one prim invisible in a linked set and it looks like a pretty good one, the only thing is I have no idea where to put the list!?!? So what i'm trying to do is when I click a spoon I want it to dissapear or go invisible from the set its linked to like a plate, can someone help me out? // Makes selected prims in a linkset become transparent or visible on chat command. Give each prim a unique name. list PrimList = ["ALL"]; // Start our prim list with a dummy entry, so that the index into this list will correspond directly to the link number // By making the dummy entry 'ALL' we provide a match for that option too default { changed (integer change) { if (change & CHANGED_LINK) llResetScript(); } state_entry() { integer PrimCount = llGetNumberOfPrims(); llListen(37, "", NULL_KEY, ""); // listen to chat commands from anyone on channel 37 integer i; for (i = 1; i <= PrimCount; ++i) PrimList += llToUpper(llGetLinkName(i) ); // Build a list of upper-case link names, where list position equals link number } listen(integer channel, string name, key id, string msg) { list TempList = llCSV2List( llToUpper(msg) ); // make a list from upper-case version of user command line integer ListLen = llGetListLength (TempList); integer alpha = (llList2String(TempList, 0) == "SHOW"); // 'SHOW' sets selected prims visible, otherwise set them transparent // e.g. HIDE,PLATE,SPOON,NAPKIN <---- makes named prims invisible // e.g. SHOW,ALL <---- makes all prims visible integer i; for (i = 1; i < ListLen; ++i) { string ThisPrim = llStringTrim(llList2String(TempList, i), STRING_TRIM); integer LinkNumber = llListFindList(PrimList, [ThisPrim]); if (~LinkNumber) // i.e. if LinkNumber != -1 { if (!LinkNumber) LinkNumber = LINK_SET; // list position 0 is 'ALL' llSetLinkAlpha(LinkNumber, alpha, ALL_SIDES); } } } }
×
×
  • Create New...