part_emitter_clear

With this function you can clear the given emitter from the specified particle system back to its default state. This will also stop any particles that are being streamed from the emitter at the time, and if you wish to use the emitter again you will need to set the region position and particle type using the part_emitter_region() function.

 

Syntax:

part_emitter_clear(ps, ind);

ArgumentTypeDescription
psParticle System InstanceThe particle system that the emitter is in.
indParticle Emitter IDThe index of the emitter to clear.

 

Returns:

N/A

 

Example:

part_emitter_clear(Sname, p_emit1 );

The above code will clear the particle emitter indexed in the variable "p_emit1".