# CastParticles

Particle
5.1 OC
bool
string name Name of the particle type.
int amount Amount of particles.
int level Velocity at which to cast the particles.
int x X coordinate of the particle. Offset in local calls.
int y Y coordinate of the particle. Offset in local calls.
int a0 Lower limit for the first extra parameter. This is usually the size of the particles in 1/5 pixels.
int a1 Upper limit for the first extra parameter.
int b0 Lower limit for the second extra parameter. This is usually the color modulation of the particles.
int b1 Upper limit for the second extra parameter.
object obj Target object for object local particles. Object local particles are drawn directly on top of the object and are removed when the object is deleted.
Casts the specified amount of particles of the specified type. The extra parameters are set randomly in the range from a0/b0 to a1/b1.
This function returns `false` if the particle definition was not found, otherwise `true`. There is no return value indicating whether the particle has actually been created. This must be so to prevent synchronization problems in network games, as particles may be handled differently on each computer in the network.
CastParticles("MagicSpark", 10,100, 0,0, 100, 200, RGBa(128,128,255,0), RGBa(255,255,255,127));
Creates some sparks.
CreateParticle
CastObjects
CastPXS
Sven2
2002-05