CreateParticleEmitter()

Syntax

Result = CreateParticleEmitter(#ParticleEmitter, Width, Height, Depth, Type, [, x, y, z])
Description
Creates a new empty #ParticleEmitter of the given width, height and depth (respectively x,y and z dimension). If #PB_Any is used as '#ParticleEmitter' parameter, the new particle emitter number will be returned as 'Result'.

The default size of the future Particles can be specified with the ParticleSize() function. The optionals x,y,z parameters can be specified to set the position of the newly created emitter in the world. If the 'Result' is 0, the #ParticleEmitter can't be created. If the #ParticleEmitter was already created, it is automatically freed and replaced by the new one.

The 'Type' parameter can be one of the following value:
  #PB_Particle_Point: The emitter is a single point
  #PB_Particle_Box  : The emitter is a box, with an width, height and depth

Supported OS

All

Particle Index - FreeParticleEmitter() ->