Difference between revisions of "LlMakeExplosion"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|inject-2={{LSL Function/offset|offset}}
|inject-2={{LSL Function/offset|offset|dead=*}}
|func_id=100|func_sleep=0.1|func_energy=10.0
|func_id=100|func_sleep=0.1|func_energy=10.0
|func=llMakeExplosion
|func=llMakeExplosion
Line 9: Line 9:
|p5_type=float|p5_name=arc
|p5_type=float|p5_name=arc
|p6_type=string|p6_name=texture
|p6_type=string|p6_name=texture
|p7_type=vector|p7_name=offset|p7_desc=  and is completely ignored.
|p7_type=vector|p7_name=offset
|func_desc=Make a round explosion of particles
|func_desc=Make a round explosion of particles
|func_footnote
|func_footnote
|spec
|spec
|caveats=
|caveats
*{{LSLP|offset}} no longer does anything. It is completely ignored. You should use a ZERO_VECTOR for it's value.
|constants
|constants
|examples
|examples

Revision as of 10:08, 18 June 2012

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 offset relative to the prim's position and expressed in local coordinates and is completely ignored.

Caveats

  • This function causes the script to sleep for 0.1 seconds.
  • This function has been deprecated, please use llParticleSystem instead.
  • offset functionality has been removed, any value provided is completely ignored. For future proofing purposes, you should use a ZERO_VECTOR for it's value.

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 );