6b000664-a9cb-b6c7-eab7-1868b0547779_script.lsl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // The line above should be left blank to avoid script errors in OpenSim.
  3. integer SLOODLE_CHANNEL_OBJECT_DIALOG = -3857343;//configuration channel
  4. integer counter;
  5. default
  6. {
  7. state_entry()
  8. {
  9. llSetPrimitiveParams( [ PRIM_GLOW,2,0.0 ] );
  10. llSetPrimitiveParams( [ PRIM_GLOW,0,0.0 ] );
  11. counter=0;
  12. }
  13. link_message(integer sender_num, integer num, string str, key id)
  14. {
  15. // Check the channel
  16. // Check the channel
  17. if (num == SLOODLE_CHANNEL_OBJECT_DIALOG) {
  18. // What was the message?
  19. if (str == "do:reset"){
  20. llTriggerSound("powerdown",1.0);
  21. llSetPrimitiveParams( [ PRIM_GLOW,2,0.0 ] );
  22. llSetPrimitiveParams( [ PRIM_GLOW,0,0.0 ] );
  23. }
  24. }
  25. if (num != -99) return;
  26. else {
  27. if (str == "do:reset") llResetScript();
  28. // What was the message?
  29. else
  30. if (str == "turn glow on"){
  31. llTriggerSound("powerup",1.0);
  32. llSetPrimitiveParams( [ PRIM_GLOW,2,0.40 ] );
  33. llSetPrimitiveParams( [ PRIM_GLOW,0,0.40 ] );
  34. }else
  35. if (str == "turn glow off"){
  36. llTriggerSound("powerdown",1.0);
  37. llSetPrimitiveParams( [ PRIM_GLOW,2,0.0 ] );
  38. llSetPrimitiveParams( [ PRIM_GLOW,0,0.0 ] );
  39. }
  40. }
  41. }
  42. }
  43. // Please leave the following line intact to show where the script lives in Git:
  44. // SLOODLE LSL Script Git Location: mod/set-1.0/objects/default/assets/sloodle_set_back_glow.lslp