Jump to content

LAHIN Milo

Resident
  • Content Count

    29
  • Joined

  • Last visited

Community Reputation

5 Neutral

About LAHIN Milo

  • Rank
    Member

Recent Profile Visitors

170 profile views
  1. True it works better with the box checked ! thank you
  2. Thank you, but the script does not work at all now … there's no syntax error but it doesnt work … ugh it drive me crazy lol thank for your help, in case someone knows why the script doesnt work let me know ^^
  3. I'm not a scripter at all, i copied what you said to put it on the script but it say syntax error
  4. Hi, I've the same problem as Madame thespian. I'd like to use my texture changer script on my mesh object but which could be used by the owner only. I tried what ppl say up there, so i added the line if (llDetectedKey(0)==llGetOwner()) as it say. But now, when another avatar click on the object, the menu pop on my window ! Somebody knows why ? Here's the script: //Drop this script into an object with up to 22 textures inside. //When anyone Touches they will get a menu with all the textures available. Button names in menu will be first 10 characters from that item's name. //NOTE: Texture Names may not exceed 24 characters or script error and menu fails. integer side = ALL_SIDES; //ALL_SIDES or any face number 0 through 5 list texture_list; list texture_list2; key user = NULL_KEY; composelist() { integer currenttexture = 0; integer totaltextures = llGetInventoryNumber(INVENTORY_TEXTURE); if(totaltextures > 0 & totaltextures <= 12) { texture_list = []; do { texture_list = texture_list + llGetInventoryName(INVENTORY_TEXTURE, currenttexture); currenttexture++; } while (currenttexture > 0 & currenttexture < totaltextures); } if(totaltextures > 12 & totaltextures <= 22) { texture_list = ["Next Page"]; do { texture_list = texture_list + llGetInventoryName(INVENTORY_TEXTURE, currenttexture); currenttexture++; } while (currenttexture > 0 & currenttexture < 11); texture_list2 = ["Last Page"]; do { texture_list2 = texture_list2 + llGetInventoryName(INVENTORY_TEXTURE, currenttexture); currenttexture++; } while (currenttexture >= 11 & currenttexture < totaltextures); } if(totaltextures > 22) { llWhisper(0, "You may only have a maximimum of 22 Textures. Please remove any extra ones."); } if(totaltextures == 0) { llWhisper(0, "Please add up to 22 Textures inside this object."); } } //The Menu integer menu_handler; integer menu_channel; menu(key user,string title,list texture_list) { menu_channel = (integer)(llFrand(99999.0) * -1); //random channel menu_handler = llListen(menu_channel,"","",""); llDialog(user,title,texture_list,menu_channel); llSetTimerEvent(30.0); //menu channel open for 30 seconds } default { state_entry() { composelist(); //make list from inventory textures } touch_start(integer total_number) { if (llDetectedKey(0) == llGetOwner()) user = llDetectedKey(0); menu(user,"nnPlease select one below.",texture_list); } listen(integer channel,string name,key id,string message) { if (channel == menu_channel) { llSetTimerEvent(0.0); llListenRemove(menu_handler); if(message == "Next Page") { menu(user,"nnPlease select one below.",texture_list2); } else if(message == "Last Page") { menu(user,"nnPlease select one below.",texture_list); } else { llSetTexture(message, side); } } } timer() //Close the Menu Listen or we'll get laggy { llSetTimerEvent(0.0); llListenRemove(menu_handler); } changed(integer change) { if (change & CHANGED_INVENTORY) //inventory has changed { llSleep(0.5); composelist(); //rebuild the list } } }
  5. Oh right ! well i took another "play animation script" and i've now no error message .
  6. Hi guys , i'm posting here about PERMISSION_TRIGGER_ANIMATION. I've a drink dispenser and inside it, there's avmenu script, avprop script and the drinks to "give". In the drinks objects, there's avobject script, play animation script and the animation. When you get a drink, it ask your permission to play the "hold animation" AND there's an error script from the drinks that say "Script trying to stop animations but PERMISSION_TRIGGER_ANIMATION permission not set" 😀 i've been searching on the internet on how to set the permission but Nothing clear. So, if someone knows how to stop this error message it would be cool to let me know ! ☺️
  7. LAHIN Milo

    Mesh Upload

    hum ok ! yes i used the same 3d model so im gon make a physic one .. ugh im lazy sometimes lol thanks for your help
  8. LAHIN Milo

    Mesh Upload

    Hi ! I've an issue with a physic mesh. When i upload this, evrything in blue is fine , but the red parts has no physic on .. Does somebody knows why ? https://gyazo.com/0987b8c7b4ddce1ab4d924ec48ec0745
  9. @panterapolnocy You are the best ! thank you very much ! πŸ˜ƒ
  10. Thank you @panterapolnocy for your help ! I was thinking about to link each lamps together and then when you click on any of them all the lamps turns on ..πŸ€” I tried to find a way to do this on google but i didnt find it Sorry @Lucia Nightfire i didnt find the same problem as me in this topic thats why i didnt started a new topic cause this one was talkin about light script .
  11. tyvm it works ! and just in case if someone know how to add an access it would be nice ! thanks for your help
  12. Hello I'd like to know if someone could help me with a light script. I made a lamp which has 3 faces and i'd like to light up the face 0 . I have a script to light my lamp up BUT all the faces are on light and i see no place into the script to select which face i want to light up. Someone know how to add this into the script ? and also if that was possible to add an access to the lamp like owner or public ... Thanks for your replies // Touch the object to light it up. // Lighting is configurable. integer light_s = TRUE; vector lightcolor = <1.0, 0.75, 0.5>; float intensity = 1.0; // 0.0 <= intensity <= 1.0 float radius = 10.0; // 0.1 <= radius <= 20.0 float falloff = 0.01; // 0.01 <= falloff <= 2.0 float glow = 0.05; toggle() { float thisglow = 0.0; light_s = !light_s; if (light_s) thisglow = glow; llSetPrimitiveParams([ PRIM_POINT_LIGHT, light_s, lightcolor, intensity, radius, falloff, PRIM_FULLBRIGHT, ALL_SIDES, light_s, PRIM_GLOW, ALL_SIDES, thisglow ]); llSetColor(lightcolor, ALL_SIDES); } default { state_entry() { llSetText("", <1.0, 1.0, 1.0>, 1.0); toggle(); } touch_start(integer total_number) { toggle(); } }
  13. yay ! now i can hear the sound ! Thank you for your patience About the glow and transparency , i can see the glow line set to 0.30 but i dont see any line with transparency set to 0.5. I just see transparency to 50.0 . Anyway now everything works fine ! thank you Fritigern Thank you Mollymews ! πŸ‘
  14. @Mollymews hum i see ... but if you try on a cube .. put any texture in the edit menu (texture) and any UUID sound into the script you will see Ifnot i can show you in world ... If somebody know why i cant hear the sound .. please let me know
  15. Hi @Mollymews yes that's what i did. i've made my own sound with audacity. I took the UUID and paste it into the script but it doesnt work... i cant hear it ... And for texture issue, i slided the texture into the texture tab in edit menu... Still nothing i even tried to slide the texture in the content object but nothing change.
×
×
  • Create New...