ParticleEmitter: Creates a particle emitter that emits particles at a specified frequency over a specified length of time.
ParticleEmitter [x,y,z] [emitterduration] [template] [emitfreq]
ParticleEmitter [x,y,z] [emitterduration] [emitfreq] [duration] [velocity] [size] [startcolor] [gravity] [rotation] [velocityvariation] [endcolor] [emitposvariance] [emitposoffset]
[x,y,z] - The position (coordinate) in the world of the emitter.
[emitterduration] - The emitter will be active emitting particles for this duration in seconds and then be automatically removed.
[template] - A preset type of particle to emit. Current presets are [Default], [Chimney], [Sparks], [SnowMachine], [AcidRain], [ForestFire].
[emitfreq] - The frequency in seconds to emit the particles.
[duration] - The duration of the particle, in seconds. Maximum duration is 8 seconds.
[velocity] - The velocity of the particles in meters per second. 3 comma separated values for the X, Y and Z axis.
[size] - Starting size of the particles and the end size multiplier. 4 comma separated values. The first 3 values are the initial size for the X, Y and Z axis, and the fourth number is the end size multiplier. The particles are spawned as the initial size, and interpolated to the initial size * end size multiplier over it's life time.
[startcolor] - The starting color of the particles specified in RGBA format (4 comma separated values with a range of 0-255).
[gravity] - The gravity of the particle in meters per second. Zero equals no gravity. Negative gravity is supported. If this parameter is omitted a value of zero is used (no gravity).
[rotation] - The rotation speed of the particles in radians per second. Zero equals no rotation. A positive number rotates clockwise, a negative number rotates anti-clockwise. If this parameter is omitted a value of zero is used (no rotation).
[velocityvariation] - This value allows randomized variation of the particles velocity as an offset to the base [velocity]. e.g. if the base [velocity] is 1,2,3 and the [velocityvariance] is [0.5, 1, 1.5] then the particles velocity will be in the range of [0.75/1.25, 1.5/2.5, 2.25/3.75]. If this parameter is omitted a value of [0,0,0] is used (no variation).
[endcolor] - The ending color of the particles specified in RGBA format (4 comma separated values with a range of 0-255). The particles color will be interpolated from the start color to the end color over it's lifetime. If this parameter is omitted the end color will equal the start color (no change in color).
[emitposvariance] - Similar to [velocityvariance] except this value works against the base (emitter) position. It allows particles to be spawned over a randomized area around the base position. If this parameter is omitted a value of [0,0,0] is used (no variation).
[emitposoffset] - This parameter allows you to offset the particles spawn position against the base (emitter) position.
ParticleEmitter [100,200,150] [Chimney]
Emits chimney smoke particles that rises into the air, changing color from dark to light gray as it rises. The particles are emitted at the frequency defined by the template.
ParticleEmitter [100,200,150] [Chimney] [0.1]
Emits chimney smoke particles at a custom frequency (1 particle every 0.1 of a second or 10 particles per second).
ParticleEmitter [100,200,150]   [4.5] [5.2,4.3,3.5] [0.5,0.6,0.7,3] [255,255,0,255]
Emits particles at 1 particle per second for 20 seconds. Each particle lasts for 4.5 seconds. It has a constant velocity of 5.2,4.3,3.5 mps. The size of the particle starts at 0.5,0.6,0.7 and ends at 1.5,1.8,2.1. It's color is a constant yellow. It has not rotation, velocity variance, color change, position variance or position offset.
Particle [100,200,150]  [0.5] [4.5] [5.2,4.3,3.5] [0.5,0.6,0.7,3] [255,255,0,255]  [1.57] [1,1,1] [255,0,0,255] [5,5,5] [0,2,0]
Emits particles at 2 particles per second for 30 seconds. Each particle lasts for 4.5 seconds. It has a constant velocity of between 4.7,3.8,3.0 and 5.7,4.8,4.0 mps. The size of the particle starts at 0.5,0.6,0.7 and ends at 1.5,1.8,2.1. It's color starts at yellow and interpolates to red over its lifetime. It has gravity of 2 mps. It has a rotation of 1.57 radians per second (approximately 1 full spin every 4 seconds). The particle may spawn within [-2.5,-2.5,-2.5] and [2.5,2.5,2.5] of the base position. The particles base position is offset by 2 meters up.