part_emitter_clear

Clears the settings of a given emitter.

Syntax:

part_emitter_clear(ps, ind);


Argument Description
ps The particle system that the emitter is in.
ind The index of the emitter to clear.


Returns: N/A


Description

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.


Example:

part_emitter_clear(Sname, p_emit1 );

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


Back: Particles
Next: part_emitter_region
© Copyright YoYo Games Ltd. 2018 All Rights Reserved