diff --git a/docs/sdk/script/fn/DrawParticleLine.xml b/docs/sdk/script/fn/DrawParticleLine.xml index e020be58d..f50c58d24 100644 --- a/docs/sdk/script/fn/DrawParticleLine.xml +++ b/docs/sdk/script/fn/DrawParticleLine.xml @@ -41,32 +41,33 @@ Distance between particles. This may not be applied exactly as particles are always spread evenly over the total distance. - int - a - Extra parameter. This is usually the size of the particle in 1/5 pixels. + any + xdir + Initial horizontal velocity in 1/10th pixels per frame or as a value provider. - int - b0 - Extra starting parameter. This is usually the color modulation at the starting point. - - - int - b1 - Extra end parameter. This parameter is interpolated from starting to end point and then applied. - - - int + any ydir - Initial vertical velocity. + Initial vertical velocity in 1/10th pixels per frame or as a value provider. + + + any + lifetime + Duration of particle in frames or as a value provider. + + + proplist + prtdef + Particle definition. Creates a line of particles between two points. Returns the number of particles created. + For more information about the value provider and particle definition parameters, see CreateParticle. - DrawParticleLine("MagicSpark", 0, 0, GetX(GetCursor())-GetX(), GetY(GetCursor())-GetY(), 20, 100, RGBa(255,50,50,50), RGBa(50,255,50,100), -10); - Creates a line from the calling object to the selected clonk of the first player, color fading from red to blue. + DrawParticleLine("MagicSpark", 0, 0, GetCursor()->GetX()-GetX(), GetCursor()->GetY()-GetY(), 20, 0, 0, 12, {Prototype = Particles_Flash(), Size = 20, R = 50, G = 50, B = 255}); + Creates a line from the calling object to the selected clonk of the first player using a blue flash particle.