Garry's Mod Wiki

CNewParticleEffect:StopEmissionAndDestroyImmediately

  CNewParticleEffect:StopEmissionAndDestroyImmediately()

Description

Stops particle emission and destroys all particles instantly. Also detaches the particle effect from the entity it was attached to.

This function will work identically to CNewParticleEffect:StopEmission( false, true ) if CNewParticleEffect:GetOwner entity is not valid.

Consider using CNewParticleEffect:StopEmission( false, true ) instead, which has same effect, but doesn't require owner entity, and does't detach the particle system from its entity.