CLuaEmitter
List of all possible functions available for LuaEmitters. This is the object returned by the ParticleEmitter function.
Methods
Creates a new CLuaParticle with the given material and position.
CLuaEmitter:Draw()
Manually renders all particles the emitter has created.
CLuaEmitter:Finish()
Removes the emitter, making it no longer usable from Lua. If particles remain, the emitter will be removed when all particles die.
number CLuaEmitter:GetNumActiveParticles()
Returns the amount of active particles of this emitter.
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.
Sets the bounding box for this emitter.
Usually the bounding box is automatically determined by the particles, but this function overrides it.
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 ).
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.