natiny.particles.destroy
natiny.particles.destroy(particles)
Destroys a particle system, its particles and every entity parented to it.
Parameters
| Name | Type | Description |
|---|---|---|
particles |
number |
Particle system handle from natiny.particles.create |
Example
if not natiny.particles.get_alive(explosion) then
natiny.particles.destroy(explosion)
end