Advertisement
isnorden

Rainbow telepoofer

Jan 23rd, 2020
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. ///////////////////////////////////////////////
  2. /////////////ANIMATION STATION 2011////////////
  3. ////////////////DRAKE FAUDEBURGH///////////////
  4. ///////////////////////////////////////////////
  5. ///////////////////READ THIS///////////////////
  6. //You must click 'Running' at the bottom of the script window to activate this script!
  7. //This is a Teleport Poofer Script Template.
  8. //You simply drop this script inside of your object, attach it to your avatar, and it will burst the effect upon Teleporting.
  9. //This is a very basic Telepoofer and is FULL PERM for you to use in your own products, and to use in products you sell.
  10. //You may not sell this script in a script package or by itself.
  11. //HAVE FUN!!
  12. ///////////////////////////////////////////////
  13.  
  14. integer poof = 1;//poof is enabled. Set to '0' to disable poof
  15.  
  16. float poofTimer = 3.0;///the amount of time to burst the particle effects until they shut off
  17.  
  18. poofParticle()
  19. {
  20. if(poof)//if poof is enabled (at the top of the script), then proceed
  21. {
  22. ///////////////////////////////////////////////
  23. ///////PASTE YOUR 'OUTPUT' SCRIPT BELOW////////
  24. //Particle Name: Teleport FX - Electro
  25. llParticleSystem([
  26. PSYS_PART_FLAGS,(0|256|1|2|16|32|64),
  27. PSYS_SRC_TARGET_KEY,llGetKey(),
  28. PSYS_PART_START_COLOR,<0.00000, 0.00000, 0.00000>,
  29. PSYS_PART_END_COLOR,<0.00000, 0.00000, 0.00000>,
  30. PSYS_PART_START_ALPHA,0.300000,
  31. PSYS_PART_END_ALPHA,0.000000,
  32. PSYS_PART_START_GLOW,0.000000,
  33. PSYS_PART_END_GLOW,0.000000,
  34. PSYS_PART_START_SCALE,<1.50000, 1.40000, 0.00000>,
  35. PSYS_PART_END_SCALE,<2.80000, 0.70000, 0.00000>,
  36. PSYS_PART_MAX_AGE,5.600000,
  37. PSYS_SRC_ACCEL,<0.00000, 0.00000, 0.00000>,
  38. PSYS_SRC_PATTERN,2,
  39. PSYS_SRC_TEXTURE,"62cc5855-73a7-cd8b-cc4d-70fd07f14216",
  40. PSYS_SRC_BURST_RATE,0.500000,
  41. PSYS_SRC_BURST_PART_COUNT,12,
  42. PSYS_SRC_BURST_RADIUS,0.500000,
  43. PSYS_SRC_BURST_SPEED_MIN,1.500000,
  44. PSYS_SRC_BURST_SPEED_MAX,1.500000,
  45. PSYS_SRC_MAX_AGE,0.000000,
  46. PSYS_SRC_OMEGA,<0.00000, 0.00000, 0.00000>,
  47. PSYS_SRC_ANGLE_BEGIN,0.0*PI,
  48. PSYS_SRC_ANGLE_END,0.0*PI]);
  49. ///////////////////////////////////////////////
  50. ///////////////////////////////////////////////
  51. llSetTimerEvent(poofTimer);///starts the timer for the length of time the effect will burst
  52. }
  53. else//if poof is not enabled...
  54. {
  55. llParticleSystem([]);//stop the particles
  56. }
  57. }
  58. default
  59. {
  60. state_entry()
  61. {
  62. poofParticle();//burst the effect upon first entry to the sim
  63. }
  64. changed(integer change)
  65. {
  66. if(change & CHANGED_TELEPORT||change & CHANGED_REGION)///if your avatar changed Region or you Teleported, then burst the effect
  67. {
  68. poofParticle();
  69. llSleep(2.0);
  70. poofParticle();///the effect is burst twice to ensure it triggers
  71. }
  72. }
  73. timer()
  74. {
  75. llParticleSystem([]);///stop the effect and turn off the timer
  76. llSetTimerEvent(0.0);
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement