Jump to content

Tattooshop

Resident
  • Posts

    365
  • Joined

  • Last visited

Everything posted by Tattooshop

  1. I click on an object and a menu appears. I click on the button, an action occurs, but the menu no longer appears and I have to click on the object again. How to make the menu not disappear after selecting the button?
  2. Yes thanks! I would do just that too, but I didn’t do the hud itself and I can’t do anything about it
  3. Thank you! Yes, most likely I will use the rotation. but just in case I’m trying an option with a sliding off the screen too. part of it will remain on the screen. but I have two problems. Hud moves too high even with a small value. and how to return the hud back to move in the opposite direction? default { state_entry() { // } touch_end(integer total_number) { integer hide = llDetectedLinkNumber(0); { if (hide == 3) { llSetPos(llGetPos() + <0,0,0.001>); } } } }
  4. Hello! How to add a button to the HUD to move it off the screen (or hide)? a button cannot be a root and a HUD is a linkset.
  5. Thank you all very much! Well, I think I can more or less get a top view. And for side view just have to rotate the model a bit. but if there are still some ways to get a top and side view with some hot keys for example, I will be glad to know!
  6. Super! Thanks a lot! exactly what is needed! But could you tell me how to make a top view, from the side, etc. as accurate as possible? is it possible to?
  7. Hello! Is there any way to make an orthogonal view in Second Life for a picture? or at least how to get the most approximate effect? I know that you can attach the object as a hud, but what if the object is very large, it has small details and cannot be reduced to the size of the screen (like house etc). need to look it like a plan or drawing.
  8. Has anyone noticed a seam (gap) on the left calf (the lower part of the left leg behind) at high altitudes?
  9. i really enjoy this update! mainly because now its a solid body - no separate hand or feet! thats neat. also many new cool features. 👾
  10. return min + (integer) llFrand(max - min); I just deleted 1 and now everything is ok! it was so easy, I feel stupid. thanks! 😀
  11. Hi thanks a lot for answering! but there were about ten colors on the list, and it still happened. I removed some colors to make sure. and what to do in this case?
  12. Hello everybody! I have strange script issue. this is a random color tiles script. it should show a random color from the list in a collision, but at times black color skips and it has no black RGB in the list. So what's wrong with it? list color_list = [ < 1, 0, 0 > , < 1, 1, 0 > , < 1, 1, 1 > // Add more colors if you want ]; integer random_integer(integer min, integer max) { return min + (integer) llFrand(max - min + 1); } default { state_entry() { llSetColor( < 1, 1, 1 > , ALL_SIDES); llSetTexture("5748decc-f629-461c-9a36-a35a221fe21f", ALL_SIDES); // White texture UUID } collision_start(integer a) { llSetColor(llList2Vector(color_list, random_integer(0, llGetListLength(color_list))), ALL_SIDES); llSetPrimitiveParams([PRIM_GLOW, ALL_SIDES, 1.0]); } collision_end(integer a) { llSetColor( < 1, 1, 1 > , ALL_SIDES); llSetPrimitiveParams([PRIM_GLOW, ALL_SIDES, 0.0]); } }
  13. Thank you so much! You are genious! :D
  14. integer gON = 1; // Change to -1 to reverse the direction of opening float gDistance = 1; // Adjust to set the distance the door should move long its local Y axis float TIMER = 5; // Timer (5 seconds by default) OpenShut() { integer i; for (i = 2; i <= llGetNumberOfPrims(); ++i) { if (llGetLinkName(i) == "DOOR") { list temp = llGetLinkPrimitiveParams(i, [PRIM_POSITION, PRIM_ROT_LOCAL]); rotation local_rot = (rotation) llList2String(temp, 1); vector local_pos = ((vector) llList2String(temp, 0) - llGetPos()) / llGetRot(); llSetLinkPrimitiveParamsFast(i, [PRIM_POSITION, local_pos + ( < 0.0, gDistance * gON, 0.0 > * local_rot), PRIM_ROTATION, local_rot / llGetRot()]); } } gON = (-1) * gON; } default { touch_start(integer total_number) { llSetTimerEvent(TIMER); if (llGetLinkName(llDetectedLinkNumber(0)) == "DOOR") { OpenShut(); } } timer() { llSetTimerEvent(0); OpenShut(); } } So much better thanks! Discovered unusual behavior. the door opens perfectly, but it’s better not to close it with a click but wait for the automatic closing. because if you open and close it with a click, then the orientation of the door changes and the timer slides it the other way... If double click the door script thinks that open position is the initial one and works again. How to make it to do not react on the touch if the door is open already? Or do not trigger timer on period the door is open? yes it’s probably better not to turn on the timer again until the door closes ...
  15. Thank you so much! ❤️ //version with automatic closing integer gON = 1; // Change to -1 to reverse the direction of opening float gDistance = 1; // Adjust to set the distance the door should move long its local Y axis float Timer = 5; // Timer default { touch_start(integer total_number) { llSetTimerEvent(Timer); if (llGetLinkName(llDetectedLinkNumber(0)) == "DOOR") { integer i; for (i = 2; i <= llGetNumberOfPrims(); ++i) { if (llGetLinkName(i) == "DOOR") { list temp = llGetLinkPrimitiveParams(i, [PRIM_POSITION, PRIM_ROT_LOCAL]); rotation local_rot = (rotation) llList2String(temp, 1); vector local_pos = ((vector) llList2String(temp, 0) - llGetPos()) / llGetRot(); llSetLinkPrimitiveParamsFast(i, [PRIM_POSITION, local_pos + ( < 0.0, gDistance * gON, 0.0 > * local_rot), PRIM_ROTATION, local_rot / llGetRot()]); } } gON = (-1) * gON; } } timer() { llSetTimerEvent(0); integer i; for (i = 2; i <= llGetNumberOfPrims(); ++i) { if (llGetLinkName(i) == "DOOR") { list temp = llGetLinkPrimitiveParams(i, [PRIM_POSITION, PRIM_ROT_LOCAL]); rotation local_rot = (rotation) llList2String(temp, 1); vector local_pos = ((vector) llList2String(temp, 0) - llGetPos()) / llGetRot(); llSetLinkPrimitiveParamsFast(i, [PRIM_POSITION, local_pos + ( < 0.0, gDistance * gON, 0.0 > * local_rot), PRIM_ROTATION, local_rot / llGetRot()]); } } gON = (-1) * gON; } }
  16. Hello there! Is this possible to add automatic door close timer to this script?
  17. Thanks a lot. I did not immediately understand how the gradient would go from left to right, but when you explained I realized that the UV was "compressed" to the left side, and the gradient leaked pixel by pixel through it, everything became clear. really very interesting method. need to take note! Thank you very much!
  18. Hello! Thank you all very much! Everything works! That's what I did. The only thing, at the bottom I have changed event and I had to remove it, as it was resetting the loop for some reason. Is it possible to keep it somehow? integer steps = 25; float delay = 0.01; float TIMER = 5; // Timer in second integer FACE_NUMBER = 0; // Face number list slides = []; getSlides() { integer ii; integer iiMax = llGetInventoryNumber(INVENTORY_TEXTURE); string name; for (ii = 0; ii < iiMax; ii++) { name = llGetInventoryName(INVENTORY_TEXTURE, ii); slides += [name]; } } integer index; newSlide() { string texture = llList2String(slides, index); llSetTexture(texture, FACE_NUMBER); index++; if (index >= llGetListLength(slides)) index = 0; } default { state_entry() { getSlides(); if (llGetListLength(slides) > 0) { llSetTimerEvent(TIMER); index = 0; newSlide(); } } timer() { integer fade_step = steps; while (fade_step--) { float fade = (float) fade_step / (float) steps; llSetColor (<fade, fade, fade>, FACE_NUMBER); llSleep (delay); } newSlide(); while (++fade_step <= steps) { float fade = (float) fade_step / (float) steps; llSetColor (<fade, fade, fade>, FACE_NUMBER); llSleep (delay); } } /* changed(integer change) { llResetScript(); }*/ } Yes, the slideshow uses automatic frame change. I tried to use your way, but failed as it is for touch. How in this case to multiplex the timer? And I used your method, everything works, but I could not match the transition cicle and timer. Is it possible to synchronize them somehow? float TIMER = 5; // Timer in second integer FACE_NUMBER = 0; // Face number list slides = []; getSlides() { integer ii; integer iiMax = llGetInventoryNumber(INVENTORY_TEXTURE); string name; for (ii = 0; ii < iiMax; ii++) { name = llGetInventoryName(INVENTORY_TEXTURE, ii); slides += [name]; } } integer index; newSlide() { string texture = llList2String(slides, index); llSetTexture(texture, FACE_NUMBER); index++; if (index >= llGetListLength(slides)) index = 0; } default { state_entry() { getSlides(); if (llGetListLength(slides) > 0) { llSetTimerEvent(TIMER); index = 0; newSlide(); } float PERIOD = 0.01; // some period to wait in seconds or fraction of a second float STEP = 0.002; // step to take at period vector a = <1.0, 1.0, 1.0>; vector b = <0.0, 0.0, 0.0>; llSetColor(a, ALL_SIDES); float s = STEP; // 1.73205080757 is sqrt(3) vector n = 1.73205080757 * llVecNorm(b - a); while (TRUE) // infinite loop { if (llGetTime() >= PERIOD) // punctuate in constant time { llResetTime(); // inline vec line plot vector c = a + s * n; llSetColor(c, ALL_SIDES); s += STEP; if (s >= 1.0) { // swap a b c = a; a = b; b = c; s = STEP; n = 1.73205080757 * llVecNorm(b - a); } } } } timer() { newSlide(); } /* changed(integer change) { llResetScript(); }*/ } Thank you all very much again!
  19. Hey. I have a simple slideshow script and I decided to make a smooth transition when the texture gradually turns black and then the frame changes and the texture gradually turns white again. How to make the color from white turn to black and then from black to white gradually? Thank you!
  20. Hello! I need to mod script. Now it works by chat commands, I need to make it work by the menu. It shows objects attached to avatar. You can select a specific avatar located in the same sim. You can select your own avatar. I pay for the mod 1000 L$. Please post here if you are interested! Additional info: the script displays information about attachments in the form of a list in a local chat message.
  21. Yes thank you very much, I already understood it... I guess dialog box is the best for me. Thanks everyone for participation!
  22. Now I have default { touch_start(integer num_detected) { key id = llDetectedKey(0); llLoadURL(id,"","secondlife:///app/agent/" + (string)id + "/about"); } } but it still doesn't go to profile directly, I see blue window with text "Load web page?" and only when I click "Go to page" button it opens.
  23. Hi! WITH clicking a scripted object not the link in a chat.
×
×
  • Create New...