Result = CreateParticleEmitter(#ParticleEmitter, Width, Height, Depth, Type, [, x.f, y.f, z.f])
Creates a new empty particle emitter of the given size.


#ParticleEmitter A number to identify the new particle emitter. #PB_Any can be used to auto-generate this number.
Width, Height, Depth The size of the new particle emitter (respectively x,y and z dimension). The default size of the future Particles can be specified with the ParticleSize() function.
Type It 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
x, y, z (optional) The initial position of the particle emitter in the world.

Return value

Nonzero if the particle emitter has been successfully created, zero otherwise. If #PB_Any was used as #ParticleEmitter parameter then the auto-generated number of the new particle emitter will be returned.

See Also


Supported OS


Particle Index - DisableParticleEmitter() ->