part_emitter_stream(sys,ind,type,numb)

From ENIGMA
Jump to navigation Jump to search

Description

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.

Parameters

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

Return Values

void: This function does not return anything.

Example Call

// demonstrates setting a particle emitter to emit 5 particles every step
part_emitter_stream(sys, emitter, type, 5);