Difference between revisions of "LlMakeExplosion"

From Second Life Wiki
Jump to navigation Jump to search
m (lsl code tagging)
Line 21: Line 21:
|also_articles
|also_articles
|notes=Beginning in 1.14, the simulator will be using [[llParticleSystem]] to emulate legacy llMakeExplosion particles.
|notes=Beginning in 1.14, the simulator will be using [[llParticleSystem]] to emulate legacy llMakeExplosion particles.
<pre>
<lsl>
llMakeExplosion(integer particle_count,
llMakeExplosion(integer particle_count,
                 float particle_scale,
                 float particle_scale,
Line 29: Line 29:
                 string source_texture_id,
                 string source_texture_id,
                 vector local_offset);
                 vector local_offset);
</pre>
</lsl>
<pre>
<lsl>
fakeMakeExplosion(integer particle_count, float particle_scale, float particle_speed,  
fakeMakeExplosion(integer particle_count, float particle_scale, float particle_speed,  
                 float particle_lifetime, float source_cone, string source_texture_id,  
                 float particle_lifetime, float source_cone, string source_texture_id,  
Line 73: Line 73:
//    5) There is no way to duplicate the offset from the old functions within the
//    5) There is no way to duplicate the offset from the old functions within the
//      new particle system
//      new particle system
</pre>
</lsl>
|cat1=Particles
|cat1=Particles
|cat2=Effects
|cat2=Effects

Revision as of 15:31, 31 March 2008

Emblem-important.png Deprecated
(This function has been deprecated, please use llParticleSystem instead.)

Summary

Function: llMakeExplosion( integer particles, float scale, float vel, float lifetime, float arc, string texture, vector offset );
0.1 Forced Delay
10.0 Energy

Make a round explosion of particles

• integer particles
• float scale
• float vel
• float lifetime
• float arc
• string texture
• vector offset

Caveats

  • This function causes the script to sleep for 0.1 seconds.
  • This function has been deprecated, please use llParticleSystem instead.

Examples

Notes

Beginning in 1.14, the simulator will be using llParticleSystem to emulate legacy llMakeExplosion particles. <lsl> llMakeExplosion(integer particle_count,

               float particle_scale,
               float particle_speed,
               float particle_lifetime,
               float source_cone,
               string source_texture_id,
               vector local_offset);

</lsl> <lsl> fakeMakeExplosion(integer particle_count, float particle_scale, float particle_speed,

                float particle_lifetime, float source_cone, string source_texture_id, 
                vector local_offset) 

{

   //local_offset is ignored
   llParticleSystem([
       PSYS_PART_FLAGS,            PSYS_PART_INTERP_COLOR_MASK

Deep Notes

Signature

function void llMakeExplosion( integer particles, float scale, float vel, float lifetime, float arc, string texture, vector offset );