Jump to content

LAHIN Milo

Resident
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

4 Neutral

About LAHIN Milo

  • Rank
    Member

Recent Profile Visitors

148 profile views
  1. Oh right ! well i took another "play animation script" and i've now no error message .
  2. 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 ! ☺️
  3. 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
  4. 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
  5. @panterapolnocy You are the best ! thank you very much ! πŸ˜ƒ
  6. 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 .
  7. tyvm it works ! and just in case if someone know how to add an access it would be nice ! thanks for your help
  8. 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(); } }
  9. 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 ! πŸ‘
  10. @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
  11. 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.
  12. @Mollymews so it works now, but i cant hear the sound of the fire maybe i've to fix something . I increased the volume but cant hear it .. @Fritigern Gothly well in the flame script i gave you before (with the 2 others scripts) the texture show up on the mesh . With the combined scripts it doesnt work .
  13. @Fritigern Gothly Thank you ! it works, but ... my flame texture don't show up on the mesh . @Mollymews Thank you, I tried your script but it doesnt work.. it says syntax error on 19 & 4 . i hope that i (or we or you ) will find the solution to make it work in only one script
  14. Thx for your reply Fritigern the 1st script is Flame with sound : float volume = 0.5; //Set the sound effects volume (0-1) float rate = 0.3; //Set the speed of the animation in frames per second default { touch_start(integer num_detected) { llLoopSound("3643f41e-fc7b-d44c-120a-35a9aecb4de7",volume); llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 1, 1, 0, 1, rate ); state loop; } } The second script is the light and glow : // 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.30; 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(); } } The thirsd script is the transparent texture when it's turned off : float transparency = 50.0; float changeBy = 100.0; default { touch_start(integer count) { transparency = transparency + changeBy; if (transparency > 100.0) { transparency = 0.0; } llSetAlpha(1.0 - (transparency / 100.0), ALL_SIDES); } changed(integer change) { if (change & CHANGED_OWNER) { llResetScript(); } } }
  15. Hi everyone, I made a campfire with mesh flame, and my problem is that i'm using 3 scripts to make it work . 1 for the animation texture (that contain the crackling fire sound) , 1 for the light and glow and 1 for the transparent texture when its off, i click on it to turn it on/off it works well, but 3 scripts it's toomuch just for a mesh ! so my question is if it's possible to have thoses 3 script in 1 ? If yes how ?
×
×
  • Create New...