Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///////////////////////////////////////////////
- /////////////ANIMATION STATION 2011////////////
- ////////////////DRAKE FAUDEBURGH///////////////
- ///////////////////////////////////////////////
- ///////////////////READ THIS///////////////////
- //You must click 'Running' at the bottom of the script window to activate this script!
- //This is a Teleport Poofer Script Template.
- //You simply drop this script inside of your object, attach it to your avatar, and it will burst the effect upon Teleporting.
- //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.
- //You may not sell this script in a script package or by itself.
- //HAVE FUN!!
- ///////////////////////////////////////////////
- integer poof = 1;//poof is enabled. Set to '0' to disable poof
- float poofTimer = 3.0;///the amount of time to burst the particle effects until they shut off
- poofParticle()
- {
- if(poof)//if poof is enabled (at the top of the script), then proceed
- {
- ///////////////////////////////////////////////
- ///////PASTE YOUR 'OUTPUT' SCRIPT BELOW////////
- //Particle Name: Teleport FX - Electro
- llParticleSystem([
- PSYS_PART_FLAGS,(0|256|1|2|16|32|64),
- PSYS_SRC_TARGET_KEY,llGetKey(),
- PSYS_PART_START_COLOR,<0.00000, 0.00000, 0.00000>,
- PSYS_PART_END_COLOR,<0.00000, 0.00000, 0.00000>,
- PSYS_PART_START_ALPHA,0.300000,
- PSYS_PART_END_ALPHA,0.000000,
- PSYS_PART_START_GLOW,0.000000,
- PSYS_PART_END_GLOW,0.000000,
- PSYS_PART_START_SCALE,<1.50000, 1.40000, 0.00000>,
- PSYS_PART_END_SCALE,<2.80000, 0.70000, 0.00000>,
- PSYS_PART_MAX_AGE,5.600000,
- PSYS_SRC_ACCEL,<0.00000, 0.00000, 0.00000>,
- PSYS_SRC_PATTERN,2,
- PSYS_SRC_TEXTURE,"62cc5855-73a7-cd8b-cc4d-70fd07f14216",
- PSYS_SRC_BURST_RATE,0.500000,
- PSYS_SRC_BURST_PART_COUNT,12,
- PSYS_SRC_BURST_RADIUS,0.500000,
- PSYS_SRC_BURST_SPEED_MIN,1.500000,
- PSYS_SRC_BURST_SPEED_MAX,1.500000,
- PSYS_SRC_MAX_AGE,0.000000,
- PSYS_SRC_OMEGA,<0.00000, 0.00000, 0.00000>,
- PSYS_SRC_ANGLE_BEGIN,0.0*PI,
- PSYS_SRC_ANGLE_END,0.0*PI]);
- ///////////////////////////////////////////////
- ///////////////////////////////////////////////
- llSetTimerEvent(poofTimer);///starts the timer for the length of time the effect will burst
- }
- else//if poof is not enabled...
- {
- llParticleSystem([]);//stop the particles
- }
- }
- default
- {
- state_entry()
- {
- poofParticle();//burst the effect upon first entry to the sim
- }
- changed(integer change)
- {
- if(change & CHANGED_TELEPORT||change & CHANGED_REGION)///if your avatar changed Region or you Teleported, then burst the effect
- {
- poofParticle();
- llSleep(2.0);
- poofParticle();///the effect is burst twice to ensure it triggers
- }
- }
- timer()
- {
- llParticleSystem([]);///stop the effect and turn off the timer
- llSetTimerEvent(0.0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement