List of all possible functions available for LuaEmitters. This is the object returned by the ParticleEmitter function.
CLuaParticle CLuaEmitter:Add( string material, Vector position )
Creates a new CLuaParticle with the given material and position.
Manually renders all particles the emitter has created.
Removes the emitter and all its particles.
Returns the position of this emitter. This is set when creating the emitter with ParticleEmitter.
Returns whether this emitter is 3D or not. This is set when creating the emitter with ParticleEmitter.
CLuaEmitter:SetBBox( Vector mins, Vector maxs )
Sets the bounding box for this emitter. Usually the bounding box is automatically determined by the particles, but this function overrides it.
CLuaEmitter:SetNearClip( number distanceMin, number distanceMax )
This function sets the the distance between the render camera and the emitter at which the particles should start fading and at which distance fade ends ( alpha becomes 0 ).
CLuaEmitter:SetNoDraw( boolean noDraw )
Prevents all particles of the emitter from automatically drawing.
CLuaEmitter:SetParticleCullRadius( number radius )
The function name has not much in common with its actual function, it applies a radius to every particles that affects the building of the bounding box, as it, usually is constructed by the particle that has the lowest x, y and z and the highest x, y and z, this function just adds/subtracts the radius and inflates the bounding box.