proto native int PlayParticles | ( | out array< ParticleSource > | particles, |
string | path, | ||
notnull array< vector > | positions, | ||
int | count = 1 ) |
QoL function for when wanting to play a particle at a position right away.
particles | array<ParticleSource> The resulting particles if an array is given |
path | string Path of particle effect |
positions | array<vector> Positions of particles |
count | int Amount of particles to create at this position |
int
Amount of particles created in this frame, if the ParticleManager is still allocating while this is called and virtual particles are enabled, the overflow particles will be virtual instead and not given in the out array Перекрестные ссылки path.
Используется в PlayParticleById() и PlayParticlesById().