# CreateParticle

Particle
5.1 OC
bool
string szName Name of the particle
int x X coordinate of the particle. Offset in local calls.
int y Y coordinate of the particle. Offset in local calls.
int xdir Initial horizontal velocity of the particle.
int ydir Initial vertical velocity of the particle.
int a Extra parameter. This is usually the size of the particle in 1/5 pixels.
int b Extra parameter. This is usually the color modulation of the particle.
object target 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.
bool behind_target If specified and not `false`, the particle is drawn directly behind the target object.
Creates a particle. The named particle definition must be loaded. For more information see the particle documentation.
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.
CreateParticle("Blast", 0,0, 0,0, 100, RGB(128,128,255));
Creates a blue explosion at the position of the calling object.
PushParticles
ClearParticles
Sven2
2002-04