This function sets an emitter to stream a specific type of particle.
NOTE Should you need the particles to appear all at once rather than every step, you should be using the function part_emitter_burst.
part_emitter_stream(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 stream from. |
parttype | Particle Type ID | The index (type) of the particles to be created. |
number | Real | The number of particles to create per step, or the density (i.e. percent coverage of the emitter region) with relative mode enabled (see part_emitter_relative) |
N/A
part_emitter_stream(global.Sname, p_emit1, p1, 1);
The above code will stream 1 particle every step of the game until the emitter is destroyed or the stream set to 0.