Erzeugt ein Linie zwischen zwei Punkten aus Partikeln. Rückgabewert ist die Anzahl der erzeugten Partikel.
- particle:
Name des Partikeltyps, von dem die Partikel zu erzeugen sind
- x0:
X-Position des Startpunktes. Offset bei lokalem Aufruf.
- y0:
Y-Position des Startpunktes. Offset bei lokalem Aufruf.
- x1:
X-Position des Endpunktes. Offset bei lokalem Aufruf.
- y1:
Y-Position des Endpunktes. Offset bei lokalem Aufruf.
- prtdist:
Abstand zwischen zwei Partikeln. Dieser Abstand kann möglicherweise nicht genau eingehalten werden, da die Partikel immer gleichmäßig auf die Strecke verteilt werden.
- xdir:
Initial horizontal velocity in 1/10th pixels per frame or as a value provider.
- ydir:
Initial vertical velocity in 1/10th pixels per frame or as a value provider.
- lifetime:
Duration of particle in frames or as a value provider.
- prtdef:
Particle definition.
For more information about the value provider and particle definition parameters, see
CreateParticle.
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.