Advertisement
Guest User

Untitled

a guest
May 16th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. //start_unprocessed_text
  2. /*/|/ Eeron Kilian 2005
  3. /|/ Script was made for Twistedtwoubles for whatever diabolical
  4. /|/ colour twitching needs she might have had at that time...
  5. /|/
  6. /|/ It should be fairly self-explanatory, if not, just fool
  7. /|/ around with the numbers until it suits you.
  8. /|/
  9. /|/ Modded to act as a light source too.
  10.  
  11. integer switch = TRUE; /|/ set "switch" flag to 1 (on)
  12. default {
  13. state_entry()
  14. {
  15. llSetTimerEvent(1.0); /|/ generate a timer event every 3 second
  16. }
  17.  
  18. timer()
  19. {
  20. float alpha = llGetAlpha(0);
  21. if (switch && alpha != 0.0)
  22. {
  23. /|/llSetColor(<5,0,0>, ALL_SIDES); /|/ make it red (5?, it only goes upto 1.0!)
  24. /|/ PRIM_COLOUR,
  25. /|/ Side,
  26. /|/ Colour
  27. /|/ PRIM_POINT_LIGHT,
  28. /|/ True/False,
  29. /|/ Colour,
  30. /|/ Intensity, (0.0 - 1.0)
  31. /|/ Radius, (0.1 - 20.0)
  32. /|/ Falloff (0.01 - 2.0)
  33.  
  34. llSetPrimitiveParams([
  35. PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
  36. PRIM_POINT_LIGHT, TRUE, <0.192, 0.180, 0.290>, 0.35, 0.075, 0.1,
  37. PRIM_GLOW, ALL_SIDES, 1.0
  38. ]);
  39. switch = FALSE;
  40. } else {
  41. /|/llSetColor(<0,0,0>, ALL_SIDES); /|/ make it white (white?, 0 is black!)
  42. llSetPrimitiveParams([
  43. PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
  44. PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 0.5, 0.5, 0.1,
  45. PRIM_GLOW, ALL_SIDES, 0.0
  46. ]);
  47. switch = TRUE;
  48. }
  49. }
  50. }*/
  51. //end_unprocessed_text
  52. //nfo_preprocessor_version 0
  53. //program_version Firestorm-Releasex64 5.0.7.52912 - Arcos153
  54. //last_compiled 10/08/2017 14:13:39
  55. //mono
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. integer switch = TRUE;
  70. default {
  71. state_entry()
  72. {
  73. llSetTimerEvent(1.0);
  74. }
  75.  
  76. timer()
  77. {
  78. float alpha = llGetAlpha(0);
  79. if (switch && alpha != 0.0)
  80. {
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92. llSetPrimitiveParams([
  93. PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
  94. PRIM_POINT_LIGHT, TRUE, <0.192, 0.180, 0.290>, 0.35, 0.075, 0.1,
  95. PRIM_GLOW, ALL_SIDES, 1.0
  96. ]);
  97. switch = FALSE;
  98. } else {
  99.  
  100. llSetPrimitiveParams([
  101. PRIM_COLOR, ALL_SIDES, <0.192, 0.180, 0.290>, alpha,
  102. PRIM_POINT_LIGHT, FALSE, ZERO_VECTOR, 0.5, 0.5, 0.1,
  103. PRIM_GLOW, ALL_SIDES, 0.0
  104. ]);
  105. switch = TRUE;
  106. }
  107. }
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement