part_emitter_burst

This function sets an emitter to burst a specific type of particle.

NOTE Should you need the particles to appear every step, you should be using the function part_emitter_stream rather than calling this function every step.

 

Usage Notes

 

Syntax:

part_emitter_burst(ps, ind, parttype, number);

ArgumentTypeDescription
psParticle System InstanceThe particle system that the emitter is in.
indParticle Emitter IDThe index of the emitter to burst from.
parttypeParticle Type IDThe index (type) of the particles to be created.
numberRealThe number of particles to create, or the density (i.e. percent coverage of the emitter region) with relative mode enabled (see part_emitter_relative)

 

Returns:

N/A

 

Example:

part_emitter_burst(global.Sname, p_emit1, p1, 30 + irandom(30));

The above code will burst a random number of particles between 30 and 60 from the chosen emitter.