part_emitter_stream

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.

Usage Notes

 

Syntax:

part_emitter_stream(ps, ind, parttype, number);

ArgumentTypeDescription
psParticle System InstanceThe particle system that the emitter is in.
indParticle Emitter IDThe index of the emitter to stream from.
parttypeParticle Type IDThe index (type) of the particles to be created.
numberRealThe 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)

 

Returns:

N/A

 

Example:

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.