SHARE
TWEET

Untitled

a guest Apr 18th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //tiny script for make nice light effect.
  2. //made by haku spiritor
  3. //please do whatever you want, just dont erase this credit thanks you
  4.  
  5. list songhigh = ["7a3eb386-f76c-3f75-09e4-c222eeb185bb","294e0262-0267-1cb5-9874-8595d6b6c4d6","adf0fa46-ea94-7477-129d-34c33a80d306"];
  6. string songrandomhigh;
  7. default
  8. {
  9.     state_entry()
  10.     {
  11.     llVolumeDetect(TRUE);
  12.     }
  13.     collision_start(integer NoC)
  14.     {
  15.         integer R = llRound(llFrand(llGetListLength(songhigh)-1));//randomise le song jouĂ©, pour changer un peu ^^
  16.         songrandomhigh = llList2String(songhigh,R);  
  17.     llPlaySound(songrandomhigh,1.0);
  18.     integer i;
  19.     while(i<3)
  20.         {
  21.             float r=llFrand(0.3);
  22.         llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_GLOW,ALL_SIDES,0.2,
  23.         PRIM_FULLBRIGHT,ALL_SIDES,TRUE,
  24.         PRIM_POINT_LIGHT,TRUE,<255,255,255>,0.5,2.4,0.0]);
  25.         llSleep(r);
  26.         llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_GLOW,ALL_SIDES,0.2,
  27.         PRIM_FULLBRIGHT,ALL_SIDES,FALSE]);
  28.         llSleep(0.05);
  29.         i++;
  30.         }
  31.        llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_GLOW,ALL_SIDES,0.0, PRIM_POINT_LIGHT,FALSE,<0,0,0>,0.0,0.0,0.0]);
  32.     }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top