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.
part_emitter_burst(ps, ind, parttype, number);
Argument | Type | Description |
---|---|---|
ps | Particle System Instance | The particle system that the emitter is in. |
ind | Particle Emitter ID | The index of the emitter to burst from. |
parttype | Particle Type ID | The index (type) of the particles to be created. |
number | Real | The number of particles to create, or the density (i.e. percent coverage of the emitter region) with relative mode enabled (see part_emitter_relative) |
N/A
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.