part_emitter_stream - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Sets the given particle emitter in the given particle system to emit the given number of particles of the given particle type every step. Indicating a number smaller than 0 for the particle count will cause the particles to emitted with a chance of -1/number. For instance, if -5 is given for the particle count, 1 particle will be emitted every 5 steps.
Parameter | Data Type | Description |
---|---|---|
sys | integer | index of the particle system |
ind | integer | index of the particle emitter |
type | integer | index of the particle type to emit |
numb | integer | number of particles to emit |
void: This function does not return anything.
// demonstrates setting a particle emitter to emit 5 particles every step
part_emitter_stream(sys, emitter, type, 5);
NOTOC